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
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 },
101 data_type => "varchar",
102 default_value => "title",
108 data_type => "timestamp",
109 datetime_undef_if_invalid => 1,
110 default_value => \"current_timestamp",
115 data_type => "datetime",
116 datetime_undef_if_invalid => 1,
120 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
122 { data_type => "tinyint", default_value => 1, is_nullable => 1 },
123 "allow_delete_other",
124 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
131 =item * L</shelfnumber>
137 __PACKAGE__->set_primary_key("shelfnumber");
145 Related object: L<Koha::Schema::Result::Borrower>
149 __PACKAGE__->belongs_to(
151 "Koha::Schema::Result::Borrower",
152 { borrowernumber => "owner" },
156 on_delete => "SET NULL",
157 on_update => "SET NULL",
161 =head2 virtualshelfcontents
165 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
169 __PACKAGE__->has_many(
170 "virtualshelfcontents",
171 "Koha::Schema::Result::Virtualshelfcontent",
172 { "foreign.shelfnumber" => "self.shelfnumber" },
173 { cascade_copy => 0, cascade_delete => 0 },
176 =head2 virtualshelfshares
180 Related object: L<Koha::Schema::Result::Virtualshelfshare>
184 __PACKAGE__->has_many(
185 "virtualshelfshares",
186 "Koha::Schema::Result::Virtualshelfshare",
187 { "foreign.shelfnumber" => "self.shelfnumber" },
188 { cascade_copy => 0, cascade_delete => 0 },
192 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-06 09:35:37
193 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wfAdz7LrmH49vdJ3f5rsmA
196 # You can replace this text with custom content, and it will be preserved on regeneration