2 package Koha::Schema::Result::ItemtypesBranch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ItemtypesBranch
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<itemtypes_branches>
22 __PACKAGE__->table("itemtypes_branches");
42 __PACKAGE__->add_columns(
44 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
46 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55 Related object: L<Koha::Schema::Result::Branch>
59 __PACKAGE__->belongs_to(
61 "Koha::Schema::Result::Branch",
62 { branchcode => "branchcode" },
63 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
70 Related object: L<Koha::Schema::Result::Itemtype>
74 __PACKAGE__->belongs_to(
76 "Koha::Schema::Result::Itemtype",
77 { itemtype => "itemtype" },
78 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
82 # Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-07-04 04:56:48
83 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cBTswjKV8VWN1iueB+PygQ
86 # You can replace this text with custom code or comments, and it will be preserved on regeneration