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'
126 =head2 reset_password
131 =head2 change_password
136 =head2 exclude_from_local_holds_priority
141 =head2 min_password_length
143 data_type: 'smallint'
146 =head2 require_strong_password
153 __PACKAGE__->add_columns(
155 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
157 { data_type => "longtext", is_nullable => 1 },
159 { data_type => "smallint", is_nullable => 1 },
160 "enrolmentperioddate",
161 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
163 { data_type => "smallint", is_nullable => 1 },
164 "dateofbirthrequired",
165 { data_type => "tinyint", is_nullable => 1 },
167 { data_type => "varchar", is_nullable => 1, size => 30 },
169 { data_type => "tinyint", is_nullable => 1 },
171 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
172 "overduenoticerequired",
173 { data_type => "tinyint", is_nullable => 1 },
175 { data_type => "smallint", is_nullable => 1 },
177 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
179 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
181 { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
182 "BlockExpiredPatronOpacActions",
184 accessor => "block_expired_patron_opac_actions",
185 data_type => "tinyint",
192 default_value => "default",
193 extra => { list => ["default", "never", "forever"] },
198 data_type => "varchar",
199 default_value => "inherit",
204 { data_type => "tinyint", is_nullable => 1 },
206 { data_type => "tinyint", is_nullable => 1 },
207 "exclude_from_local_holds_priority",
208 { data_type => "tinyint", is_nullable => 1 },
209 "min_password_length",
210 { data_type => "smallint", is_nullable => 1 },
211 "require_strong_password",
212 { data_type => "tinyint", is_nullable => 1 },
219 =item * L</categorycode>
225 __PACKAGE__->set_primary_key("categorycode");
229 =head2 borrower_message_preferences
233 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
237 __PACKAGE__->has_many(
238 "borrower_message_preferences",
239 "Koha::Schema::Result::BorrowerMessagePreference",
240 { "foreign.categorycode" => "self.categorycode" },
241 { cascade_copy => 0, cascade_delete => 0 },
248 Related object: L<Koha::Schema::Result::Borrower>
252 __PACKAGE__->has_many(
254 "Koha::Schema::Result::Borrower",
255 { "foreign.categorycode" => "self.categorycode" },
256 { cascade_copy => 0, cascade_delete => 0 },
259 =head2 categories_branches
263 Related object: L<Koha::Schema::Result::CategoriesBranch>
267 __PACKAGE__->has_many(
268 "categories_branches",
269 "Koha::Schema::Result::CategoriesBranch",
270 { "foreign.categorycode" => "self.categorycode" },
271 { cascade_copy => 0, cascade_delete => 0 },
274 =head2 circulation_rules
278 Related object: L<Koha::Schema::Result::CirculationRule>
282 __PACKAGE__->has_many(
284 "Koha::Schema::Result::CirculationRule",
285 { "foreign.categorycode" => "self.categorycode" },
286 { cascade_copy => 0, cascade_delete => 0 },
289 =head2 pseudonymized_transactions
293 Related object: L<Koha::Schema::Result::PseudonymizedTransaction>
297 __PACKAGE__->has_many(
298 "pseudonymized_transactions",
299 "Koha::Schema::Result::PseudonymizedTransaction",
300 { "foreign.categorycode" => "self.categorycode" },
301 { cascade_copy => 0, cascade_delete => 0 },
305 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-09-02 12:50:50
306 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JOzFLxLwouaTl5dQJrOdZA
308 __PACKAGE__->add_columns(
309 '+exclude_from_local_holds_priority' => { is_boolean => 1 },
312 sub koha_object_class {
313 'Koha::Patron::Category';
315 sub koha_objects_class {
316 'Koha::Patron::Categories';
319 __PACKAGE__->add_columns(
320 '+require_strong_password' => { is_boolean => 1 }