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
138 __PACKAGE__
->add_columns(
140 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 10 },
142 { data_type
=> "longtext", is_nullable
=> 1 },
144 { data_type
=> "smallint", is_nullable
=> 1 },
145 "enrolmentperioddate",
146 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
148 { data_type
=> "smallint", is_nullable
=> 1 },
149 "dateofbirthrequired",
150 { data_type
=> "tinyint", is_nullable
=> 1 },
152 { data_type
=> "varchar", is_nullable
=> 1, size
=> 30 },
154 { data_type
=> "tinyint", is_nullable
=> 1 },
156 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
157 "overduenoticerequired",
158 { data_type
=> "tinyint", is_nullable
=> 1 },
160 { data_type
=> "smallint", is_nullable
=> 1 },
162 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
164 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
166 { data_type
=> "varchar", default_value
=> "A", is_nullable
=> 0, size
=> 1 },
167 "BlockExpiredPatronOpacActions",
169 accessor
=> "block_expired_patron_opac_actions",
170 data_type
=> "tinyint",
177 default_value
=> "default",
178 extra
=> { list
=> ["default", "never", "forever"] },
183 data_type
=> "varchar",
184 default_value
=> "inherit",
189 { data_type
=> "tinyint", is_nullable
=> 1 },
191 { data_type
=> "tinyint", is_nullable
=> 1 },
198 =item * L</categorycode>
204 __PACKAGE__
->set_primary_key("categorycode");
208 =head2 borrower_message_preferences
212 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
216 __PACKAGE__
->has_many(
217 "borrower_message_preferences",
218 "Koha::Schema::Result::BorrowerMessagePreference",
219 { "foreign.categorycode" => "self.categorycode" },
220 { cascade_copy
=> 0, cascade_delete
=> 0 },
227 Related object: L<Koha::Schema::Result::Borrower>
231 __PACKAGE__
->has_many(
233 "Koha::Schema::Result::Borrower",
234 { "foreign.categorycode" => "self.categorycode" },
235 { cascade_copy
=> 0, cascade_delete
=> 0 },
238 =head2 categories_branches
242 Related object: L<Koha::Schema::Result::CategoriesBranch>
246 __PACKAGE__
->has_many(
247 "categories_branches",
248 "Koha::Schema::Result::CategoriesBranch",
249 { "foreign.categorycode" => "self.categorycode" },
250 { cascade_copy
=> 0, cascade_delete
=> 0 },
253 =head2 circulation_rules
257 Related object: L<Koha::Schema::Result::CirculationRule>
261 __PACKAGE__
->has_many(
263 "Koha::Schema::Result::CirculationRule",
264 { "foreign.categorycode" => "self.categorycode" },
265 { cascade_copy
=> 0, cascade_delete
=> 0 },
269 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-04-12 02:43:58
270 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7rwTH9HuxcdRCBP/bj0d/A
272 sub koha_object_class
{
273 'Koha::Patron::Category';
275 sub koha_objects_class
{
276 'Koha::Patron::Categories';