Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / ClassSplitRule.pm
blob9aab8b654cd882d7c09d9593cde352e1b6e62bc6
1 use utf8;
2 package Koha::Schema::Result::ClassSplitRule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ClassSplitRule
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<class_split_rules>
20 =cut
22 __PACKAGE__->table("class_split_rules");
24 =head1 ACCESSORS
26 =head2 class_split_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 split_routine
40 data_type: 'varchar'
41 default_value: (empty string)
42 is_nullable: 0
43 size: 30
45 =head2 split_regex
47 data_type: 'varchar'
48 default_value: (empty string)
49 is_nullable: 0
50 size: 255
52 =cut
54 __PACKAGE__->add_columns(
55 "class_split_rule",
56 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57 "description",
58 { data_type => "longtext", is_nullable => 1 },
59 "split_routine",
60 { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
61 "split_regex",
62 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
65 =head1 PRIMARY KEY
67 =over 4
69 =item * L</class_split_rule>
71 =back
73 =cut
75 __PACKAGE__->set_primary_key("class_split_rule");
77 =head1 RELATIONS
79 =head2 class_sources
81 Type: has_many
83 Related object: L<Koha::Schema::Result::ClassSource>
85 =cut
87 __PACKAGE__->has_many(
88 "class_sources",
89 "Koha::Schema::Result::ClassSource",
90 { "foreign.class_split_rule" => "self.class_split_rule" },
91 { cascade_copy => 0, cascade_delete => 0 },
95 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-11-13 15:24:28
96 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PkAwS2zW9E20B34bFWtV4g
99 # You can replace this text with custom code or comments, and it will be preserved on regeneration