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");
40 foreign key for virtualshelves
48 borrower that accepted access to this list
56 temporary string used in accepting the invitation to access thist list; not-empty means that the invitation has not been accepted yet
61 datetime_undef_if_invalid: 1
64 date of invitation or acceptance of invitation
68 __PACKAGE__->add_columns(
70 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
72 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
76 { data_type => "varchar", is_nullable => 1, size => 10 },
79 data_type => "datetime",
80 datetime_undef_if_invalid => 1,
95 __PACKAGE__->set_primary_key("id");
103 Related object: L<Koha::Schema::Result::Borrower>
107 __PACKAGE__->belongs_to(
109 "Koha::Schema::Result::Borrower",
110 { borrowernumber => "borrowernumber" },
114 on_delete => "SET NULL",
115 on_update => "SET NULL",
123 Related object: L<Koha::Schema::Result::Virtualshelve>
127 __PACKAGE__->belongs_to(
129 "Koha::Schema::Result::Virtualshelve",
130 { shelfnumber => "shelfnumber" },
131 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
135 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
136 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Aovcx4icmIsaRskB9qUSlA
139 # You can replace this text with custom content, and it will be preserved on regeneration