2 package Koha::Schema::Result::ItemBundle;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ItemBundle
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<item_bundles>
22 __PACKAGE__->table("item_bundles");
40 __PACKAGE__->add_columns(
42 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59 __PACKAGE__->set_primary_key("host", "item");
61 =head1 UNIQUE CONSTRAINTS
63 =head2 C<item_bundles_uniq_1>
73 __PACKAGE__->add_unique_constraint("item_bundles_uniq_1", ["item"]);
81 Related object: L<Koha::Schema::Result::Item>
85 __PACKAGE__->belongs_to(
87 "Koha::Schema::Result::Item",
88 { itemnumber => "host" },
89 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96 Related object: L<Koha::Schema::Result::Item>
100 __PACKAGE__->belongs_to(
102 "Koha::Schema::Result::Item",
103 { itemnumber => "item" },
104 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
108 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-13 13:32:00
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PTF+TxbnnYyFQ0XOAaFDWw
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration