|
Lines 123-128
__PACKAGE__->table("categories");
Link Here
|
| 123 |
is_nullable: 0 |
123 |
is_nullable: 0 |
| 124 |
size: 7 |
124 |
size: 7 |
| 125 |
|
125 |
|
|
|
126 |
=head2 canplaceill |
| 127 |
|
| 128 |
data_type: 'tinyint' |
| 129 |
default_value: 0 |
| 130 |
is_nullable: 0 |
| 131 |
|
| 132 |
=cut |
| 133 |
|
| 134 |
__PACKAGE__->add_columns( |
| 135 |
"categorycode", |
| 136 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, |
| 137 |
"description", |
| 138 |
{ data_type => "mediumtext", is_nullable => 1 }, |
| 139 |
"enrolmentperiod", |
| 140 |
{ data_type => "smallint", is_nullable => 1 }, |
| 141 |
"enrolmentperioddate", |
| 142 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
| 143 |
"upperagelimit", |
| 144 |
{ data_type => "smallint", is_nullable => 1 }, |
| 145 |
"dateofbirthrequired", |
| 146 |
{ data_type => "tinyint", is_nullable => 1 }, |
| 147 |
"finetype", |
| 148 |
{ data_type => "varchar", is_nullable => 1, size => 30 }, |
| 149 |
"bulk", |
| 150 |
{ data_type => "tinyint", is_nullable => 1 }, |
| 151 |
"enrolmentfee", |
| 152 |
{ data_type => "decimal", is_nullable => 1, size => [28, 6] }, |
| 153 |
"overduenoticerequired", |
| 154 |
{ data_type => "tinyint", is_nullable => 1 }, |
| 155 |
"issuelimit", |
| 156 |
{ data_type => "smallint", is_nullable => 1 }, |
| 157 |
"reservefee", |
| 158 |
{ data_type => "decimal", is_nullable => 1, size => [28, 6] }, |
| 159 |
"hidelostitems", |
| 160 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
| 161 |
"category_type", |
| 162 |
{ data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 }, |
| 163 |
"BlockExpiredPatronOpacActions", |
| 164 |
{ |
| 165 |
accessor => "block_expired_patron_opac_actions", |
| 166 |
data_type => "tinyint", |
| 167 |
default_value => -1, |
| 168 |
is_nullable => 0, |
| 169 |
}, |
| 170 |
"default_privacy", |
| 171 |
{ |
| 172 |
data_type => "enum", |
| 173 |
default_value => "default", |
| 174 |
extra => { list => ["default", "never", "forever"] }, |
| 175 |
is_nullable => 0, |
| 176 |
}, |
| 177 |
"checkprevcheckout", |
| 178 |
{ |
| 179 |
data_type => "varchar", |
| 180 |
default_value => "inherit", |
| 181 |
is_nullable => 0, |
| 182 |
size => 7, |
| 183 |
}, |
| 184 |
"canplaceill", |
| 185 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
| 186 |
); |
| 187 |
|
| 188 |
=head1 PRIMARY KEY |
| 189 |
|
| 190 |
=over 4 |
| 191 |
|
| 192 |
=item * L</categorycode> |
| 193 |
|
| 194 |
=back |
| 195 |
|
| 196 |
=cut |
| 197 |
|
| 198 |
__PACKAGE__->set_primary_key("categorycode"); |
| 199 |
|
| 200 |
=head1 RELATIONS |
| 201 |
|
| 202 |
=head2 borrower_message_preferences |
| 203 |
|
| 204 |
Type: has_many |
| 205 |
|
| 206 |
Related object: L<Koha::Schema::Result::BorrowerMessagePreference> |
| 207 |
|
| 208 |
=cut |
| 209 |
|
| 210 |
__PACKAGE__->has_many( |
| 211 |
"borrower_message_preferences", |
| 212 |
"Koha::Schema::Result::BorrowerMessagePreference", |
| 213 |
{ "foreign.categorycode" => "self.categorycode" }, |
| 214 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 215 |
); |
| 216 |
|
| 217 |
=head2 borrowers |
| 218 |
|
| 219 |
Type: has_many |
| 220 |
|
| 221 |
Related object: L<Koha::Schema::Result::Borrower> |
| 222 |
|
| 223 |
=cut |
| 224 |
|
| 225 |
__PACKAGE__->has_many( |
| 226 |
"borrowers", |
| 227 |
"Koha::Schema::Result::Borrower", |
| 228 |
{ "foreign.categorycode" => "self.categorycode" }, |
| 229 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 230 |
); |
| 231 |
|
| 232 |
=head2 branch_borrower_circ_rules |
| 233 |
|
| 234 |
Type: has_many |
| 235 |
|
| 236 |
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule> |
| 237 |
|
| 238 |
=cut |
| 239 |
|
| 240 |
__PACKAGE__->has_many( |
| 241 |
"branch_borrower_circ_rules", |
| 242 |
"Koha::Schema::Result::BranchBorrowerCircRule", |
| 243 |
{ "foreign.categorycode" => "self.categorycode" }, |
| 244 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 245 |
); |
| 246 |
|
| 247 |
=head2 categories_branches |
| 248 |
|
| 249 |
Type: has_many |
| 250 |
|
| 251 |
Related object: L<Koha::Schema::Result::CategoriesBranch> |
| 252 |
|
| 253 |
=cut |
| 254 |
|
| 255 |
__PACKAGE__->has_many( |
| 256 |
"categories_branches", |
| 257 |
"Koha::Schema::Result::CategoriesBranch", |
| 258 |
{ "foreign.categorycode" => "self.categorycode" }, |
| 259 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 260 |
); |
| 261 |
|
| 262 |
=head2 default_borrower_circ_rule |
| 263 |
|
| 264 |
Type: might_have |
| 265 |
|
| 266 |
Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule> |
| 267 |
|
| 268 |
=cut |
| 269 |
|
| 270 |
__PACKAGE__->might_have( |
| 271 |
"default_borrower_circ_rule", |
| 272 |
"Koha::Schema::Result::DefaultBorrowerCircRule", |
| 273 |
{ "foreign.categorycode" => "self.categorycode" }, |
| 274 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 275 |
); |
| 276 |
|
| 277 |
|
| 278 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-02 16:54:49 |
| 279 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ibThNmTCUqfIMnQH89C8g |
| 280 |
# These lines were loaded from '/home/alex/src/koha/Koha/Schema/Result/Category.pm' found in @INC. |
| 281 |
# They are now part of the custom portion of this file |
| 282 |
# for you to hand-edit. If you do not either delete |
| 283 |
# this section or remove that file from @INC, this section |
| 284 |
# will be repeated redundantly when you re-create this |
| 285 |
# file again via Loader! See skip_load_external to disable |
| 286 |
# this feature. |
| 287 |
|
| 288 |
use utf8; |
| 289 |
package Koha::Schema::Result::Category; |
| 290 |
|
| 291 |
# Created by DBIx::Class::Schema::Loader |
| 292 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 293 |
|
| 294 |
=head1 NAME |
| 295 |
|
| 296 |
Koha::Schema::Result::Category |
| 297 |
|
| 298 |
=cut |
| 299 |
|
| 300 |
use strict; |
| 301 |
use warnings; |
| 302 |
|
| 303 |
use base 'DBIx::Class::Core'; |
| 304 |
|
| 305 |
=head1 TABLE: C<categories> |
| 306 |
|
| 307 |
=cut |
| 308 |
|
| 309 |
__PACKAGE__->table("categories"); |
| 310 |
|
| 311 |
=head1 ACCESSORS |
| 312 |
|
| 313 |
=head2 categorycode |
| 314 |
|
| 315 |
data_type: 'varchar' |
| 316 |
default_value: (empty string) |
| 317 |
is_nullable: 0 |
| 318 |
size: 10 |
| 319 |
|
| 320 |
=head2 description |
| 321 |
|
| 322 |
data_type: 'mediumtext' |
| 323 |
is_nullable: 1 |
| 324 |
|
| 325 |
=head2 enrolmentperiod |
| 326 |
|
| 327 |
data_type: 'smallint' |
| 328 |
is_nullable: 1 |
| 329 |
|
| 330 |
=head2 enrolmentperioddate |
| 331 |
|
| 332 |
data_type: 'date' |
| 333 |
datetime_undef_if_invalid: 1 |
| 334 |
is_nullable: 1 |
| 335 |
|
| 336 |
=head2 upperagelimit |
| 337 |
|
| 338 |
data_type: 'smallint' |
| 339 |
is_nullable: 1 |
| 340 |
|
| 341 |
=head2 dateofbirthrequired |
| 342 |
|
| 343 |
data_type: 'tinyint' |
| 344 |
is_nullable: 1 |
| 345 |
|
| 346 |
=head2 finetype |
| 347 |
|
| 348 |
data_type: 'varchar' |
| 349 |
is_nullable: 1 |
| 350 |
size: 30 |
| 351 |
|
| 352 |
=head2 bulk |
| 353 |
|
| 354 |
data_type: 'tinyint' |
| 355 |
is_nullable: 1 |
| 356 |
|
| 357 |
=head2 enrolmentfee |
| 358 |
|
| 359 |
data_type: 'decimal' |
| 360 |
is_nullable: 1 |
| 361 |
size: [28,6] |
| 362 |
|
| 363 |
=head2 overduenoticerequired |
| 364 |
|
| 365 |
data_type: 'tinyint' |
| 366 |
is_nullable: 1 |
| 367 |
|
| 368 |
=head2 issuelimit |
| 369 |
|
| 370 |
data_type: 'smallint' |
| 371 |
is_nullable: 1 |
| 372 |
|
| 373 |
=head2 reservefee |
| 374 |
|
| 375 |
data_type: 'decimal' |
| 376 |
is_nullable: 1 |
| 377 |
size: [28,6] |
| 378 |
|
| 379 |
=head2 hidelostitems |
| 380 |
|
| 381 |
data_type: 'tinyint' |
| 382 |
default_value: 0 |
| 383 |
is_nullable: 0 |
| 384 |
|
| 385 |
=head2 category_type |
| 386 |
|
| 387 |
data_type: 'varchar' |
| 388 |
default_value: 'A' |
| 389 |
is_nullable: 0 |
| 390 |
size: 1 |
| 391 |
|
| 392 |
=head2 BlockExpiredPatronOpacActions |
| 393 |
|
| 394 |
accessor: 'block_expired_patron_opac_actions' |
| 395 |
data_type: 'tinyint' |
| 396 |
default_value: -1 |
| 397 |
is_nullable: 0 |
| 398 |
|
| 399 |
=head2 default_privacy |
| 400 |
|
| 401 |
data_type: 'enum' |
| 402 |
default_value: 'default' |
| 403 |
extra: {list => ["default","never","forever"]} |
| 404 |
is_nullable: 0 |
| 405 |
|
| 406 |
=head2 checkprevcheckout |
| 407 |
|
| 408 |
data_type: 'varchar' |
| 409 |
default_value: 'inherit' |
| 410 |
is_nullable: 0 |
| 411 |
size: 7 |
| 412 |
|
| 126 |
=cut |
413 |
=cut |
| 127 |
|
414 |
|
| 128 |
__PACKAGE__->add_columns( |
415 |
__PACKAGE__->add_columns( |
| 129 |
- |
|
|