2 package Koha::Schema::Result::Virtualshelfshare;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Virtualshelfshare
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<virtualshelfshares>
22 __PACKAGE__->table("virtualshelfshares");
53 datetime_undef_if_invalid: 1
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
66 { data_type => "varchar", is_nullable => 1, size => 10 },
69 data_type => "datetime",
70 datetime_undef_if_invalid => 1,
85 __PACKAGE__->set_primary_key("id");
93 Related object: L<Koha::Schema::Result::Borrower>
97 __PACKAGE__->belongs_to(
99 "Koha::Schema::Result::Borrower",
100 { borrowernumber => "borrowernumber" },
104 on_delete => "SET NULL",
105 on_update => "SET NULL",
113 Related object: L<Koha::Schema::Result::Virtualshelve>
117 __PACKAGE__->belongs_to(
119 "Koha::Schema::Result::Virtualshelve",
120 { shelfnumber => "shelfnumber" },
121 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
125 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gle9hUqefRoNSilv0gFc1w
129 # You can replace this text with custom content, and it will be preserved on regeneration