Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / ClassSortRule.pm
blob14f8220202e26f9e0264a13923c5914f4ac87280
1 use utf8;
2 package Koha::Schema::Result::ClassSortRule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ClassSortRule
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<class_sort_rules>
20 =cut
22 __PACKAGE__->table("class_sort_rules");
24 =head1 ACCESSORS
26 =head2 class_sort_rule
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 description
35 data_type: 'longtext'
36 is_nullable: 1
38 =head2 sort_routine
40 data_type: 'varchar'
41 default_value: (empty string)
42 is_nullable: 0
43 size: 30
45 =cut
47 __PACKAGE__->add_columns(
48 "class_sort_rule",
49 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
50 "description",
51 { data_type => "longtext", is_nullable => 1 },
52 "sort_routine",
53 { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
56 =head1 PRIMARY KEY
58 =over 4
60 =item * L</class_sort_rule>
62 =back
64 =cut
66 __PACKAGE__->set_primary_key("class_sort_rule");
68 =head1 RELATIONS
70 =head2 class_sources
72 Type: has_many
74 Related object: L<Koha::Schema::Result::ClassSource>
76 =cut
78 __PACKAGE__->has_many(
79 "class_sources",
80 "Koha::Schema::Result::ClassSource",
81 { "foreign.class_sort_rule" => "self.class_sort_rule" },
82 { cascade_copy => 0, cascade_delete => 0 },
86 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
87 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HvJeH/EdCoaiMvCyFLKr+A
90 # You can replace this text with custom content, and it will be preserved on regeneration