Bug 14633: Patch to control.ini to add or dependency to libapache2-mpm-itk
[koha.git] / Koha / Schema / Result / Collection.pm
blob38353ea3dcb555d141e17d3b6c6c40268d229e99
1 use utf8;
2 package Koha::Schema::Result::Collection;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Collection
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<collections>
20 =cut
22 __PACKAGE__->table("collections");
24 =head1 ACCESSORS
26 =head2 colId
28 accessor: 'col_id'
29 data_type: 'integer'
30 is_auto_increment: 1
31 is_nullable: 0
33 =head2 colTitle
35 accessor: 'col_title'
36 data_type: 'varchar'
37 default_value: (empty string)
38 is_nullable: 0
39 size: 100
41 =head2 colDesc
43 accessor: 'col_desc'
44 data_type: 'text'
45 is_nullable: 0
47 =head2 colBranchcode
49 accessor: 'col_branchcode'
50 data_type: 'varchar'
51 is_foreign_key: 1
52 is_nullable: 1
53 size: 10
55 =cut
57 __PACKAGE__->add_columns(
58 "colId",
60 accessor => "col_id",
61 data_type => "integer",
62 is_auto_increment => 1,
63 is_nullable => 0,
65 "colTitle",
67 accessor => "col_title",
68 data_type => "varchar",
69 default_value => "",
70 is_nullable => 0,
71 size => 100,
73 "colDesc",
74 { accessor => "col_desc", data_type => "text", is_nullable => 0 },
75 "colBranchcode",
77 accessor => "col_branchcode",
78 data_type => "varchar",
79 is_foreign_key => 1,
80 is_nullable => 1,
81 size => 10,
85 =head1 PRIMARY KEY
87 =over 4
89 =item * L</colId>
91 =back
93 =cut
95 __PACKAGE__->set_primary_key("colId");
97 =head1 RELATIONS
99 =head2 col_branchcode
101 Type: belongs_to
103 Related object: L<Koha::Schema::Result::Branch>
105 =cut
107 __PACKAGE__->belongs_to(
108 "col_branchcode",
109 "Koha::Schema::Result::Branch",
110 { branchcode => "colBranchcode" },
112 is_deferrable => 1,
113 join_type => "LEFT",
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