2 package Koha::Schema::Result::Collection;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Collection
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<collections>
22 __PACKAGE__->table("collections");
37 default_value: (empty string)
49 accessor: 'col_branchcode'
57 __PACKAGE__->add_columns(
61 data_type => "integer",
62 is_auto_increment => 1,
67 accessor => "col_title",
68 data_type => "varchar",
74 { accessor => "col_desc", data_type => "text", is_nullable => 0 },
77 accessor => "col_branchcode",
78 data_type => "varchar",
95 __PACKAGE__->set_primary_key("colId");
103 Related object: L<Koha::Schema::Result::Branch>
107 __PACKAGE__->belongs_to(
109 "Koha::Schema::Result::Branch",
110 { branchcode => "colBranchcode" },
114 on_delete => "CASCADE",
115 on_update => "CASCADE",
120 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
121 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gb7EYny5ULsZw8rYQQ/hjA
124 # You can replace this text with custom content, and it will be preserved on regeneration