2 package Koha::Schema::Result::Stockrotationitem;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Stockrotationitem
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<stockrotationitems>
22 __PACKAGE__->table("stockrotationitems");
32 Itemnumber to link to a stage & rota
40 stage ID to link the item to
48 Should this item be skipped for rotation?
56 Flag showing item is only just added to rota
60 __PACKAGE__->add_columns(
62 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
68 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
75 =item * L</itemnumber_id>
81 __PACKAGE__->set_primary_key("itemnumber_id");
89 Related object: L<Koha::Schema::Result::Item>
93 __PACKAGE__->belongs_to(
95 "Koha::Schema::Result::Item",
96 { itemnumber => "itemnumber_id" },
97 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
104 Related object: L<Koha::Schema::Result::Stockrotationstage>
108 __PACKAGE__->belongs_to(
110 "Koha::Schema::Result::Stockrotationstage",
111 { stage_id => "stage_id" },
112 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
116 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
117 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k/nuwkR8IxEq2D/L6PxmxA
119 __PACKAGE__->add_columns(
120 '+indemand' => { is_boolean => 1 },
121 '+fresh' => { is_boolean => 1 }
124 sub koha_object_class {
125 'Koha::StockRotationItem';
127 sub koha_objects_class {
128 'Koha::StockRotationItems';