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");
35 default_value: (empty string)
48 __PACKAGE__
->add_columns(
50 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
52 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 100 },
54 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 0, size
=> 10 },
67 __PACKAGE__
->set_primary_key("desk_id");
75 Related object: L<Koha::Schema::Result::Branch>
79 __PACKAGE__
->belongs_to(
81 "Koha::Schema::Result::Branch",
82 { branchcode
=> "branchcode" },
83 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
90 Related object: L<Koha::Schema::Result::Reserve>
94 __PACKAGE__
->has_many(
96 "Koha::Schema::Result::Reserve",
97 { "foreign.desk_id" => "self.desk_id" },
98 { cascade_copy
=> 0, cascade_delete
=> 0 },
102 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-06 11:00:40
103 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Weoxj3CBeajLEzx9DBX1ag
106 # You can replace this text with custom code or comments, and it will be preserved on regeneration