@@ -, +, @@ --- Koha/Schema/Result/Category.pm | 287 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 287 insertions(+) --- a/Koha/Schema/Result/Category.pm +++ a/Koha/Schema/Result/Category.pm @@ -123,6 +123,293 @@ __PACKAGE__->table("categories"); is_nullable: 0 size: 7 +=head2 canplaceill + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=cut + +__PACKAGE__->add_columns( + "categorycode", + { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, + "description", + { data_type => "mediumtext", is_nullable => 1 }, + "enrolmentperiod", + { data_type => "smallint", is_nullable => 1 }, + "enrolmentperioddate", + { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, + "upperagelimit", + { data_type => "smallint", is_nullable => 1 }, + "dateofbirthrequired", + { data_type => "tinyint", is_nullable => 1 }, + "finetype", + { data_type => "varchar", is_nullable => 1, size => 30 }, + "bulk", + { data_type => "tinyint", is_nullable => 1 }, + "enrolmentfee", + { data_type => "decimal", is_nullable => 1, size => [28, 6] }, + "overduenoticerequired", + { data_type => "tinyint", is_nullable => 1 }, + "issuelimit", + { data_type => "smallint", is_nullable => 1 }, + "reservefee", + { data_type => "decimal", is_nullable => 1, size => [28, 6] }, + "hidelostitems", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "category_type", + { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 }, + "BlockExpiredPatronOpacActions", + { + accessor => "block_expired_patron_opac_actions", + data_type => "tinyint", + default_value => -1, + is_nullable => 0, + }, + "default_privacy", + { + data_type => "enum", + default_value => "default", + extra => { list => ["default", "never", "forever"] }, + is_nullable => 0, + }, + "checkprevcheckout", + { + data_type => "varchar", + default_value => "inherit", + is_nullable => 0, + size => 7, + }, + "canplaceill", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, +); + +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("categorycode"); + +=head1 RELATIONS + +=head2 borrower_message_preferences + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "borrower_message_preferences", + "Koha::Schema::Result::BorrowerMessagePreference", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 borrowers + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "borrowers", + "Koha::Schema::Result::Borrower", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 branch_borrower_circ_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "branch_borrower_circ_rules", + "Koha::Schema::Result::BranchBorrowerCircRule", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 categories_branches + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "categories_branches", + "Koha::Schema::Result::CategoriesBranch", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 default_borrower_circ_rule + +Type: might_have + +Related object: L + +=cut + +__PACKAGE__->might_have( + "default_borrower_circ_rule", + "Koha::Schema::Result::DefaultBorrowerCircRule", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + + +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-02 16:54:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ibThNmTCUqfIMnQH89C8g +# These lines were loaded from '/home/alex/src/koha/Koha/Schema/Result/Category.pm' found in @INC. +# They are now part of the custom portion of this file +# for you to hand-edit. If you do not either delete +# this section or remove that file from @INC, this section +# will be repeated redundantly when you re-create this +# file again via Loader! See skip_load_external to disable +# this feature. + +use utf8; +package Koha::Schema::Result::Category; + +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +Koha::Schema::Result::Category + +=cut + +use strict; +use warnings; + +use base 'DBIx::Class::Core'; + +=head1 TABLE: C + +=cut + +__PACKAGE__->table("categories"); + +=head1 ACCESSORS + +=head2 categorycode + + data_type: 'varchar' + default_value: (empty string) + is_nullable: 0 + size: 10 + +=head2 description + + data_type: 'mediumtext' + is_nullable: 1 + +=head2 enrolmentperiod + + data_type: 'smallint' + is_nullable: 1 + +=head2 enrolmentperioddate + + data_type: 'date' + datetime_undef_if_invalid: 1 + is_nullable: 1 + +=head2 upperagelimit + + data_type: 'smallint' + is_nullable: 1 + +=head2 dateofbirthrequired + + data_type: 'tinyint' + is_nullable: 1 + +=head2 finetype + + data_type: 'varchar' + is_nullable: 1 + size: 30 + +=head2 bulk + + data_type: 'tinyint' + is_nullable: 1 + +=head2 enrolmentfee + + data_type: 'decimal' + is_nullable: 1 + size: [28,6] + +=head2 overduenoticerequired + + data_type: 'tinyint' + is_nullable: 1 + +=head2 issuelimit + + data_type: 'smallint' + is_nullable: 1 + +=head2 reservefee + + data_type: 'decimal' + is_nullable: 1 + size: [28,6] + +=head2 hidelostitems + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +=head2 category_type + + data_type: 'varchar' + default_value: 'A' + is_nullable: 0 + size: 1 + +=head2 BlockExpiredPatronOpacActions + + accessor: 'block_expired_patron_opac_actions' + data_type: 'tinyint' + default_value: -1 + is_nullable: 0 + +=head2 default_privacy + + data_type: 'enum' + default_value: 'default' + extra: {list => ["default","never","forever"]} + is_nullable: 0 + +=head2 checkprevcheckout + + data_type: 'varchar' + default_value: 'inherit' + is_nullable: 0 + size: 7 + =cut __PACKAGE__->add_columns( --