2 package Koha::Schema::Result::DefaultBranchItemRule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::DefaultBranchItemRule
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<default_branch_item_rules>
22 __PACKAGE__->table("default_branch_item_rules");
38 =head2 hold_fulfillment_policy
42 extra: {list => ["any","homebranch","holdingbranch"]}
53 __PACKAGE__->add_columns(
55 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
57 { data_type => "tinyint", is_nullable => 1 },
58 "hold_fulfillment_policy",
61 default_value => "any",
62 extra => { list => ["any", "homebranch", "holdingbranch"] },
66 { data_type => "varchar", is_nullable => 1, size => 15 },
79 __PACKAGE__->set_primary_key("itemtype");
87 Related object: L<Koha::Schema::Result::Itemtype>
91 __PACKAGE__->belongs_to(
93 "Koha::Schema::Result::Itemtype",
94 { itemtype => "itemtype" },
95 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
100 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+dEOJjQezQNGILloXC2HfQ
103 # You can replace this text with custom content, and it will be preserved on regeneration