2 package Koha::Schema::Result::ItemGroup;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ItemGroup
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<item_groups>
22 __PACKAGE__->table("item_groups");
32 id for the items group
41 id for the bibliographic record the group belongs to
49 The 'sort order' for item_groups
53 data_type: 'mediumtext'
60 data_type: 'timestamp'
61 datetime_undef_if_invalid: 1
64 Time and date the group was created
68 data_type: 'timestamp'
69 datetime_undef_if_invalid: 1
70 default_value: current_timestamp
73 Time and date of the latest change on the group
77 __PACKAGE__->add_columns(
79 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
82 data_type => "integer",
88 { data_type => "integer", default_value => 0, is_nullable => 0 },
90 { data_type => "mediumtext", is_nullable => 1 },
93 data_type => "timestamp",
94 datetime_undef_if_invalid => 1,
99 data_type => "timestamp",
100 datetime_undef_if_invalid => 1,
101 default_value => \"current_timestamp",
110 =item * L</item_group_id>
116 __PACKAGE__->set_primary_key("item_group_id");
124 Related object: L<Koha::Schema::Result::Biblio>
128 __PACKAGE__->belongs_to(
130 "Koha::Schema::Result::Biblio",
131 { biblionumber => "biblio_id" },
132 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
135 =head2 item_group_items
139 Related object: L<Koha::Schema::Result::ItemGroupItem>
143 __PACKAGE__->has_many(
145 "Koha::Schema::Result::ItemGroupItem",
146 { "foreign.item_group_id" => "self.item_group_id" },
147 { cascade_copy => 0, cascade_delete => 0 },
151 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-06-02 16:18:20
152 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YO7VdfzHDqBjGHt7vQX7gw
154 sub koha_objects_class {
155 'Koha::Biblio::ItemGroups';
157 sub koha_object_class {
158 'Koha::Biblio::ItemGroup';