2 package Koha::Schema::Result::Desk;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Desk
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<desks>
22 __PACKAGE__->table("desks");
37 default_value: (empty string)
50 library the desk is located at
54 __PACKAGE__->add_columns(
56 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
60 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
73 __PACKAGE__->set_primary_key("desk_id");
81 Related object: L<Koha::Schema::Result::Branch>
85 __PACKAGE__->belongs_to(
87 "Koha::Schema::Result::Branch",
88 { branchcode => "branchcode" },
89 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96 Related object: L<Koha::Schema::Result::Reserve>
100 __PACKAGE__->has_many(
102 "Koha::Schema::Result::Reserve",
103 { "foreign.desk_id" => "self.desk_id" },
104 { cascade_copy => 0, cascade_delete => 0 },
108 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7qeCP25arGQpM4xxnTmWbw
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration