2 package Koha::Schema::Result::ClassSource;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClassSource
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<class_sources>
22 __PACKAGE__->table("class_sources");
29 default_value: (empty string)
44 =head2 class_sort_rule
47 default_value: (empty string)
52 =head2 class_split_rule
55 default_value: (empty string)
62 __PACKAGE__->add_columns(
64 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
66 { data_type => "longtext", is_nullable => 1 },
68 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
71 data_type => "varchar",
79 data_type => "varchar",
97 __PACKAGE__->set_primary_key("cn_source");
101 =head2 class_sort_rule
105 Related object: L<Koha::Schema::Result::ClassSortRule>
109 __PACKAGE__->belongs_to(
111 "Koha::Schema::Result::ClassSortRule",
112 { class_sort_rule => "class_sort_rule" },
113 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
116 =head2 class_split_rule
120 Related object: L<Koha::Schema::Result::ClassSplitRule>
124 __PACKAGE__->belongs_to(
126 "Koha::Schema::Result::ClassSplitRule",
127 { class_split_rule => "class_split_rule" },
128 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
132 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-11-13 15:24:28
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bD/Why2Bt7rmnA9cCLIPsA
136 # You can replace this text with custom content, and it will be preserved on regeneration