2 package Koha::Schema::Result::Category;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Category
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<categories>
22 __PACKAGE__->table("categories");
29 default_value: (empty string)
38 =head2 enrolmentperiod
43 =head2 enrolmentperioddate
46 datetime_undef_if_invalid: 1
54 =head2 dateofbirthrequired
76 =head2 overduenoticerequired
105 =head2 BlockExpiredPatronOpacActions
107 accessor: 'block_expired_patron_opac_actions'
112 =head2 default_privacy
115 default_value: 'default'
116 extra: {list => ["default","never","forever"]}
119 =head2 checkprevcheckout
122 default_value: 'inherit'
128 __PACKAGE__->add_columns(
130 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
132 { data_type => "longtext", is_nullable => 1 },
134 { data_type => "smallint", is_nullable => 1 },
135 "enrolmentperioddate",
136 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
138 { data_type => "smallint", is_nullable => 1 },
139 "dateofbirthrequired",
140 { data_type => "tinyint", is_nullable => 1 },
142 { data_type => "varchar", is_nullable => 1, size => 30 },
144 { data_type => "tinyint", is_nullable => 1 },
146 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
147 "overduenoticerequired",
148 { data_type => "tinyint", is_nullable => 1 },
150 { data_type => "smallint", is_nullable => 1 },
152 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
154 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
156 { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
157 "BlockExpiredPatronOpacActions",
159 accessor => "block_expired_patron_opac_actions",
160 data_type => "tinyint",
167 default_value => "default",
168 extra => { list => ["default", "never", "forever"] },
173 data_type => "varchar",
174 default_value => "inherit",
184 =item * L</categorycode>
190 __PACKAGE__->set_primary_key("categorycode");
194 =head2 borrower_message_preferences
198 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
202 __PACKAGE__->has_many(
203 "borrower_message_preferences",
204 "Koha::Schema::Result::BorrowerMessagePreference",
205 { "foreign.categorycode" => "self.categorycode" },
206 { cascade_copy => 0, cascade_delete => 0 },
213 Related object: L<Koha::Schema::Result::Borrower>
217 __PACKAGE__->has_many(
219 "Koha::Schema::Result::Borrower",
220 { "foreign.categorycode" => "self.categorycode" },
221 { cascade_copy => 0, cascade_delete => 0 },
224 =head2 categories_branches
228 Related object: L<Koha::Schema::Result::CategoriesBranch>
232 __PACKAGE__->has_many(
233 "categories_branches",
234 "Koha::Schema::Result::CategoriesBranch",
235 { "foreign.categorycode" => "self.categorycode" },
236 { cascade_copy => 0, cascade_delete => 0 },
239 =head2 circulation_rules
243 Related object: L<Koha::Schema::Result::CirculationRule>
247 __PACKAGE__->has_many(
249 "Koha::Schema::Result::CirculationRule",
250 { "foreign.categorycode" => "self.categorycode" },
251 { cascade_copy => 0, cascade_delete => 0 },
255 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-05 20:42:53
256 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XR5anXl3qCAm/Fa/l+zYpQ
259 # You can replace this text with custom content, and it will be preserved on regeneration