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
66 data_type: 'timestamp'
67 datetime_undef_if_invalid: 1
68 default_value: '0000-00-00 00:00:00'
77 =head2 allow_delete_own
83 =head2 allow_delete_other
91 __PACKAGE__->add_columns(
93 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95 { data_type => "varchar", is_nullable => 1, size => 255 },
97 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
99 { data_type => "varchar", is_nullable => 1, size => 1 },
102 data_type => "varchar",
103 default_value => "title",
109 data_type => "timestamp",
110 datetime_undef_if_invalid => 1,
111 default_value => \"current_timestamp",
116 data_type => "timestamp",
117 datetime_undef_if_invalid => 1,
118 default_value => "0000-00-00 00:00:00",
122 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
124 { data_type => "tinyint", default_value => 1, is_nullable => 1 },
125 "allow_delete_other",
126 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
133 =item * L</shelfnumber>
139 __PACKAGE__->set_primary_key("shelfnumber");
147 Related object: L<Koha::Schema::Result::Borrower>
151 __PACKAGE__->belongs_to(
153 "Koha::Schema::Result::Borrower",
154 { borrowernumber => "owner" },
158 on_delete => "SET NULL",
159 on_update => "SET NULL",
163 =head2 virtualshelfcontents
167 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
171 __PACKAGE__->has_many(
172 "virtualshelfcontents",
173 "Koha::Schema::Result::Virtualshelfcontent",
174 { "foreign.shelfnumber" => "self.shelfnumber" },
175 { cascade_copy => 0, cascade_delete => 0 },
178 =head2 virtualshelfshares
182 Related object: L<Koha::Schema::Result::Virtualshelfshare>
186 __PACKAGE__->has_many(
187 "virtualshelfshares",
188 "Koha::Schema::Result::Virtualshelfshare",
189 { "foreign.shelfnumber" => "self.shelfnumber" },
190 { cascade_copy => 0, cascade_delete => 0 },
194 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-11-05 10:39:28
195 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O3y89+0IUoePtcIHAqR+oA
198 # You can replace this text with custom content, and it will be preserved on regeneration