1 package Koha::Schema::Result::BranchItemRule;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::BranchItemRule
18 __PACKAGE__->table("branch_item_rules");
49 __PACKAGE__->add_columns(
51 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
53 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55 { data_type => "tinyint", is_nullable => 1 },
57 { data_type => "varchar", is_nullable => 1, size => 15 },
59 __PACKAGE__->set_primary_key("itemtype", "branchcode");
67 Related object: L<Koha::Schema::Result::Itemtype>
71 __PACKAGE__->belongs_to(
73 "Koha::Schema::Result::Itemtype",
74 { itemtype => "itemtype" },
75 { on_delete => "CASCADE", on_update => "CASCADE" },
82 Related object: L<Koha::Schema::Result::Branch>
86 __PACKAGE__->belongs_to(
88 "Koha::Schema::Result::Branch",
89 { branchcode => "branchcode" },
90 { on_delete => "CASCADE", on_update => "CASCADE" },
94 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
95 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Pbf8S6Y9k2teX1337IGIA
98 # You can replace this text with custom content, and it will be preserved on regeneration