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" },
87 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-10-02 13:43:57
88 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IklOycKlChqv9Tftm8rjqA
91 # You can replace this text with custom code or comments, and it will be preserved on regeneration