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
69 =head2 allow_delete_own
75 =head2 allow_delete_other
83 __PACKAGE__
->add_columns(
85 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
87 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
89 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
91 { data_type
=> "varchar", is_nullable
=> 1, size
=> 1 },
93 { data_type
=> "varchar", is_nullable
=> 1, size
=> 16 },
96 data_type
=> "timestamp",
97 datetime_undef_if_invalid
=> 1,
98 default_value
=> \"current_timestamp
",
102 { data_type => "tinyint
", default_value => 0, is_nullable => 1 },
104 { data_type => "tinyint
", default_value => 1, is_nullable => 1 },
105 "allow_delete_other
",
106 { data_type => "tinyint
", default_value => 0, is_nullable => 1 },
113 =item * L</shelfnumber>
119 __PACKAGE__->set_primary_key("shelfnumber
");
127 Related object: L<Koha::Schema::Result::Borrower>
131 __PACKAGE__->belongs_to(
133 "Koha
::Schema
::Result
::Borrower
",
134 { borrowernumber => "owner
" },
138 on_delete => "SET NULL
",
139 on_update => "SET NULL
",
143 =head2 virtualshelfcontents
147 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
151 __PACKAGE__->has_many(
152 "virtualshelfcontents
",
153 "Koha
::Schema
::Result
::Virtualshelfcontent
",
154 { "foreign
.shelfnumber
" => "self
.shelfnumber
" },
155 { cascade_copy => 0, cascade_delete => 0 },
158 =head2 virtualshelfshares
162 Related object: L<Koha::Schema::Result::Virtualshelfshare>
166 __PACKAGE__->has_many(
167 "virtualshelfshares
",
168 "Koha
::Schema
::Result
::Virtualshelfshare
",
169 { "foreign
.shelfnumber
" => "self
.shelfnumber
" },
170 { cascade_copy => 0, cascade_delete => 0 },
174 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
175 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xRDCzpS+CXPdp4Mlp2WP6A
178 # You can replace this text with custom content, and it will be preserved on regeneration