Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / Aqcontact.pm
blobb02bcbaa358f7749a9a298fafadd5cd1efca4ee0
1 use utf8;
2 package Koha::Schema::Result::Aqcontact;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Aqcontact
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqcontacts>
20 =cut
22 __PACKAGE__->table("aqcontacts");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 name
34 data_type: 'varchar'
35 is_nullable: 1
36 size: 100
38 =head2 position
40 data_type: 'varchar'
41 is_nullable: 1
42 size: 100
44 =head2 phone
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 100
50 =head2 altphone
52 data_type: 'varchar'
53 is_nullable: 1
54 size: 100
56 =head2 fax
58 data_type: 'varchar'
59 is_nullable: 1
60 size: 100
62 =head2 email
64 data_type: 'varchar'
65 is_nullable: 1
66 size: 100
68 =head2 notes
70 data_type: 'longtext'
71 is_nullable: 1
73 =head2 orderacquisition
75 data_type: 'tinyint'
76 default_value: 0
77 is_nullable: 0
79 =head2 claimacquisition
81 data_type: 'tinyint'
82 default_value: 0
83 is_nullable: 0
85 =head2 claimissues
87 data_type: 'tinyint'
88 default_value: 0
89 is_nullable: 0
91 =head2 acqprimary
93 data_type: 'tinyint'
94 default_value: 0
95 is_nullable: 0
97 =head2 serialsprimary
99 data_type: 'tinyint'
100 default_value: 0
101 is_nullable: 0
103 =head2 booksellerid
105 data_type: 'integer'
106 is_foreign_key: 1
107 is_nullable: 0
109 =cut
111 __PACKAGE__->add_columns(
112 "id",
113 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
114 "name",
115 { data_type => "varchar", is_nullable => 1, size => 100 },
116 "position",
117 { data_type => "varchar", is_nullable => 1, size => 100 },
118 "phone",
119 { data_type => "varchar", is_nullable => 1, size => 100 },
120 "altphone",
121 { data_type => "varchar", is_nullable => 1, size => 100 },
122 "fax",
123 { data_type => "varchar", is_nullable => 1, size => 100 },
124 "email",
125 { data_type => "varchar", is_nullable => 1, size => 100 },
126 "notes",
127 { data_type => "longtext", is_nullable => 1 },
128 "orderacquisition",
129 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
130 "claimacquisition",
131 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
132 "claimissues",
133 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
134 "acqprimary",
135 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
136 "serialsprimary",
137 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
138 "booksellerid",
139 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
142 =head1 PRIMARY KEY
144 =over 4
146 =item * L</id>
148 =back
150 =cut
152 __PACKAGE__->set_primary_key("id");
154 =head1 RELATIONS
156 =head2 booksellerid
158 Type: belongs_to
160 Related object: L<Koha::Schema::Result::Aqbookseller>
162 =cut
164 __PACKAGE__->belongs_to(
165 "booksellerid",
166 "Koha::Schema::Result::Aqbookseller",
167 { id => "booksellerid" },
168 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
172 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
173 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R2x8Z9Db2oDULEODgLuw8Q
176 # You can replace this text with custom code or comments, and it will be preserved on regeneration