2 package Koha::Schema::Result::BranchItemRule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::BranchItemRule
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<branch_item_rules>
22 __PACKAGE__->table("branch_item_rules");
53 __PACKAGE__->add_columns(
55 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
57 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
59 { data_type => "tinyint", is_nullable => 1 },
61 { data_type => "varchar", is_nullable => 1, size => 15 },
70 =item * L</branchcode>
76 __PACKAGE__->set_primary_key("itemtype", "branchcode");
84 Related object: L<Koha::Schema::Result::Branch>
88 __PACKAGE__->belongs_to(
90 "Koha::Schema::Result::Branch",
91 { branchcode => "branchcode" },
92 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99 Related object: L<Koha::Schema::Result::Itemtype>
103 __PACKAGE__->belongs_to(
105 "Koha::Schema::Result::Itemtype",
106 { itemtype => "itemtype" },
107 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
111 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
112 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YLO0fLLilsc7tSfx8v/biw
115 # You can replace this text with custom content, and it will be preserved on regeneration