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");
58 data_type: 'timestamp'
59 datetime_undef_if_invalid: 1
60 default_value: current_timestamp
65 data_type: 'timestamp'
66 datetime_undef_if_invalid: 1
67 default_value: '0000-00-00 00:00:00'
76 =head2 allow_delete_own
82 =head2 allow_delete_other
90 __PACKAGE__
->add_columns(
92 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
94 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
96 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
98 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
100 { data_type
=> "varchar", is_nullable
=> 1, size
=> 16 },
103 data_type
=> "timestamp",
104 datetime_undef_if_invalid
=> 1,
105 default_value
=> \"current_timestamp
",
110 data_type => "timestamp
",
111 datetime_undef_if_invalid => 1,
112 default_value => "0000-00-00 00:00:00",
116 { data_type => "tinyint
", default_value => 0, is_nullable => 1 },
118 { data_type => "tinyint
", default_value => 1, is_nullable => 1 },
119 "allow_delete_other
",
120 { data_type => "tinyint
", default_value => 0, is_nullable => 1 },
127 =item * L</shelfnumber>
133 __PACKAGE__->set_primary_key("shelfnumber
");
141 Related object: L<Koha::Schema::Result::Borrower>
145 __PACKAGE__->belongs_to(
147 "Koha
::Schema
::Result
::Borrower
",
148 { borrowernumber => "owner
" },
152 on_delete => "SET NULL
",
153 on_update => "SET NULL
",
157 =head2 virtualshelfcontents
161 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
165 __PACKAGE__->has_many(
166 "virtualshelfcontents
",
167 "Koha
::Schema
::Result
::Virtualshelfcontent
",
168 { "foreign
.shelfnumber
" => "self
.shelfnumber
" },
169 { cascade_copy => 0, cascade_delete => 0 },
172 =head2 virtualshelfshares
176 Related object: L<Koha::Schema::Result::Virtualshelfshare>
180 __PACKAGE__->has_many(
181 "virtualshelfshares
",
182 "Koha
::Schema
::Result
::Virtualshelfshare
",
183 { "foreign
.shelfnumber
" => "self
.shelfnumber
" },
184 { cascade_copy => 0, cascade_delete => 0 },
188 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-05-14 11:27:16
189 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WVMPB7DvigdoNQ07kaT0lA
192 # You can replace this text with custom content, and it will be preserved on regeneration