1 package Koha::Schema::Result::Virtualshelve;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Virtualshelve
18 __PACKAGE__->table("virtualshelves");
54 data_type: 'timestamp'
55 default_value: current_timestamp
64 =head2 allow_delete_own
70 =head2 allow_delete_other
78 __PACKAGE__->add_columns(
80 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
82 { data_type => "varchar", is_nullable => 1, size => 255 },
84 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
86 { data_type => "varchar", is_nullable => 1, size => 1 },
88 { data_type => "varchar", is_nullable => 1, size => 16 },
91 data_type => "timestamp",
92 default_value => \"current_timestamp",
96 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
98 { data_type => "tinyint", default_value => 1, is_nullable => 1 },
100 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
102 __PACKAGE__->set_primary_key("shelfnumber");
106 =head2 virtualshelfcontents
110 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
114 __PACKAGE__->has_many(
115 "virtualshelfcontents",
116 "Koha::Schema::Result::Virtualshelfcontent",
117 { "foreign.shelfnumber" => "self.shelfnumber" },
118 { cascade_copy => 0, cascade_delete => 0 },
121 =head2 virtualshelfshares
125 Related object: L<Koha::Schema::Result::Virtualshelfshare>
129 __PACKAGE__->has_many(
130 "virtualshelfshares",
131 "Koha::Schema::Result::Virtualshelfshare",
132 { "foreign.shelfnumber" => "self.shelfnumber" },
133 { cascade_copy => 0, cascade_delete => 0 },
140 Related object: L<Koha::Schema::Result::Borrower>
144 __PACKAGE__->belongs_to(
146 "Koha::Schema::Result::Borrower",
147 { borrowernumber => "owner" },
148 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
152 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
153 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GitYLGGw2F/bqc511p2oTg
156 # You can replace this text with custom content, and it will be preserved on regeneration