Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / Aqcontact.pm
1 use utf8;
2 package Koha::Schema::Result::Aqcontact;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::Aqcontact
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqcontacts>
19
20 =cut
21
22 __PACKAGE__->table("aqcontacts");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 primary key and unique number assigned by Koha
33
34 =head2 name
35
36   data_type: 'varchar'
37   is_nullable: 1
38   size: 100
39
40 name of contact at vendor
41
42 =head2 position
43
44   data_type: 'varchar'
45   is_nullable: 1
46   size: 100
47
48 contact person's position
49
50 =head2 phone
51
52   data_type: 'varchar'
53   is_nullable: 1
54   size: 100
55
56 contact's phone number
57
58 =head2 altphone
59
60   data_type: 'varchar'
61   is_nullable: 1
62   size: 100
63
64 contact's alternate phone number
65
66 =head2 fax
67
68   data_type: 'varchar'
69   is_nullable: 1
70   size: 100
71
72 contact's fax number
73
74 =head2 email
75
76   data_type: 'varchar'
77   is_nullable: 1
78   size: 100
79
80 contact's email address
81
82 =head2 notes
83
84   data_type: 'longtext'
85   is_nullable: 1
86
87 notes related to the contact
88
89 =head2 orderacquisition
90
91   data_type: 'tinyint'
92   default_value: 0
93   is_nullable: 0
94
95 should this contact receive acquisition orders
96
97 =head2 claimacquisition
98
99   data_type: 'tinyint'
100   default_value: 0
101   is_nullable: 0
102
103 should this contact receive acquisitions claims
104
105 =head2 claimissues
106
107   data_type: 'tinyint'
108   default_value: 0
109   is_nullable: 0
110
111 should this contact receive serial claims
112
113 =head2 acqprimary
114
115   data_type: 'tinyint'
116   default_value: 0
117   is_nullable: 0
118
119 is this the primary contact for acquisitions messages
120
121 =head2 serialsprimary
122
123   data_type: 'tinyint'
124   default_value: 0
125   is_nullable: 0
126
127 is this the primary contact for serials messages
128
129 =head2 booksellerid
130
131   data_type: 'integer'
132   is_foreign_key: 1
133   is_nullable: 0
134
135 =cut
136
137 __PACKAGE__->add_columns(
138   "id",
139   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
140   "name",
141   { data_type => "varchar", is_nullable => 1, size => 100 },
142   "position",
143   { data_type => "varchar", is_nullable => 1, size => 100 },
144   "phone",
145   { data_type => "varchar", is_nullable => 1, size => 100 },
146   "altphone",
147   { data_type => "varchar", is_nullable => 1, size => 100 },
148   "fax",
149   { data_type => "varchar", is_nullable => 1, size => 100 },
150   "email",
151   { data_type => "varchar", is_nullable => 1, size => 100 },
152   "notes",
153   { data_type => "longtext", is_nullable => 1 },
154   "orderacquisition",
155   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
156   "claimacquisition",
157   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
158   "claimissues",
159   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
160   "acqprimary",
161   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
162   "serialsprimary",
163   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
164   "booksellerid",
165   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
166 );
167
168 =head1 PRIMARY KEY
169
170 =over 4
171
172 =item * L</id>
173
174 =back
175
176 =cut
177
178 __PACKAGE__->set_primary_key("id");
179
180 =head1 RELATIONS
181
182 =head2 booksellerid
183
184 Type: belongs_to
185
186 Related object: L<Koha::Schema::Result::Aqbookseller>
187
188 =cut
189
190 __PACKAGE__->belongs_to(
191   "booksellerid",
192   "Koha::Schema::Result::Aqbookseller",
193   { id => "booksellerid" },
194   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
195 );
196
197
198 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
199 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IefjqDsoXPLWKSfhYGne1A
200
201 __PACKAGE__->add_columns(
202     '+orderacquisition' => { is_boolean => 1 },
203     '+claimacquisition' => { is_boolean => 1 },
204     '+claimissues'      => { is_boolean => 1 },
205     '+acqprimary'       => { is_boolean => 1 },
206     '+serialsprimary'   => { is_boolean => 1 },
207 );
208
209 sub koha_object_class {
210     'Koha::Acquisition::Bookseller::Contact';
211 }
212 sub koha_objects_class {
213     'Koha::Acquisition::Bookseller::Contacts';
214 }
215
216 1;