2 package Koha::Schema::Result::Virtualshelve;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Virtualshelve
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<virtualshelves>
22 __PACKAGE__->table("virtualshelves");
53 default_value: 'title'
59 data_type: 'timestamp'
60 datetime_undef_if_invalid: 1
61 default_value: current_timestamp
67 datetime_undef_if_invalid: 1
70 =head2 allow_change_from_owner
76 =head2 allow_change_from_others
84 __PACKAGE__->add_columns(
86 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
88 { data_type => "varchar", is_nullable => 1, size => 255 },
90 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
92 { data_type => "varchar", is_nullable => 1, size => 1 },
95 data_type => "varchar",
96 default_value => "title",
102 data_type => "timestamp",
103 datetime_undef_if_invalid => 1,
104 default_value => \"current_timestamp",
109 data_type => "datetime",
110 datetime_undef_if_invalid => 1,
113 "allow_change_from_owner",
114 { data_type => "tinyint", default_value => 1, is_nullable => 1 },
115 "allow_change_from_others",
116 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
123 =item * L</shelfnumber>
129 __PACKAGE__->set_primary_key("shelfnumber");
137 Related object: L<Koha::Schema::Result::Borrower>
141 __PACKAGE__->belongs_to(
143 "Koha::Schema::Result::Borrower",
144 { borrowernumber => "owner" },
148 on_delete => "SET NULL",
149 on_update => "SET NULL",
153 =head2 virtualshelfcontents
157 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
161 __PACKAGE__->has_many(
162 "virtualshelfcontents",
163 "Koha::Schema::Result::Virtualshelfcontent",
164 { "foreign.shelfnumber" => "self.shelfnumber" },
165 { cascade_copy => 0, cascade_delete => 0 },
168 =head2 virtualshelfshares
172 Related object: L<Koha::Schema::Result::Virtualshelfshare>
176 __PACKAGE__->has_many(
177 "virtualshelfshares",
178 "Koha::Schema::Result::Virtualshelfshare",
179 { "foreign.shelfnumber" => "self.shelfnumber" },
180 { cascade_copy => 0, cascade_delete => 0 },
184 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-08 14:19:17
185 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xoq0lhLouCbkAp6F4ZyMGQ
187 sub koha_object_class {
188 'Koha::Virtualshelf';
190 sub koha_objects_class {
191 'Koha::Virtualshelves';