Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / VendorEdiAccount.pm
1 use utf8;
2 package Koha::Schema::Result::VendorEdiAccount;
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::VendorEdiAccount
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<vendor_edi_accounts>
19
20 =cut
21
22 __PACKAGE__->table("vendor_edi_accounts");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 description
33
34   data_type: 'mediumtext'
35   is_nullable: 0
36
37 =head2 host
38
39   data_type: 'varchar'
40   is_nullable: 1
41   size: 40
42
43 =head2 username
44
45   data_type: 'varchar'
46   is_nullable: 1
47   size: 40
48
49 =head2 password
50
51   data_type: 'varchar'
52   is_nullable: 1
53   size: 40
54
55 =head2 last_activity
56
57   data_type: 'date'
58   datetime_undef_if_invalid: 1
59   is_nullable: 1
60
61 =head2 vendor_id
62
63   data_type: 'integer'
64   is_foreign_key: 1
65   is_nullable: 1
66
67 =head2 download_directory
68
69   data_type: 'mediumtext'
70   is_nullable: 1
71
72 =head2 upload_directory
73
74   data_type: 'mediumtext'
75   is_nullable: 1
76
77 =head2 san
78
79   data_type: 'varchar'
80   is_nullable: 1
81   size: 20
82
83 =head2 standard
84
85   data_type: 'varchar'
86   default_value: 'EUR'
87   is_nullable: 1
88   size: 3
89
90 =head2 id_code_qualifier
91
92   data_type: 'varchar'
93   default_value: 14
94   is_nullable: 1
95   size: 3
96
97 =head2 transport
98
99   data_type: 'varchar'
100   default_value: 'FTP'
101   is_nullable: 1
102   size: 6
103
104 =head2 quotes_enabled
105
106   data_type: 'tinyint'
107   default_value: 0
108   is_nullable: 0
109
110 =head2 invoices_enabled
111
112   data_type: 'tinyint'
113   default_value: 0
114   is_nullable: 0
115
116 =head2 orders_enabled
117
118   data_type: 'tinyint'
119   default_value: 0
120   is_nullable: 0
121
122 =head2 responses_enabled
123
124   data_type: 'tinyint'
125   default_value: 0
126   is_nullable: 0
127
128 =head2 auto_orders
129
130   data_type: 'tinyint'
131   default_value: 0
132   is_nullable: 0
133
134 =head2 shipment_budget
135
136   data_type: 'integer'
137   is_foreign_key: 1
138   is_nullable: 1
139
140 =head2 plugin
141
142   data_type: 'varchar'
143   default_value: (empty string)
144   is_nullable: 0
145   size: 256
146
147 =cut
148
149 __PACKAGE__->add_columns(
150   "id",
151   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
152   "description",
153   { data_type => "mediumtext", is_nullable => 0 },
154   "host",
155   { data_type => "varchar", is_nullable => 1, size => 40 },
156   "username",
157   { data_type => "varchar", is_nullable => 1, size => 40 },
158   "password",
159   { data_type => "varchar", is_nullable => 1, size => 40 },
160   "last_activity",
161   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
162   "vendor_id",
163   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
164   "download_directory",
165   { data_type => "mediumtext", is_nullable => 1 },
166   "upload_directory",
167   { data_type => "mediumtext", is_nullable => 1 },
168   "san",
169   { data_type => "varchar", is_nullable => 1, size => 20 },
170   "standard",
171   { data_type => "varchar", default_value => "EUR", is_nullable => 1, size => 3 },
172   "id_code_qualifier",
173   { data_type => "varchar", default_value => 14, is_nullable => 1, size => 3 },
174   "transport",
175   { data_type => "varchar", default_value => "FTP", is_nullable => 1, size => 6 },
176   "quotes_enabled",
177   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
178   "invoices_enabled",
179   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
180   "orders_enabled",
181   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
182   "responses_enabled",
183   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
184   "auto_orders",
185   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
186   "shipment_budget",
187   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
188   "plugin",
189   { data_type => "varchar", default_value => "", is_nullable => 0, size => 256 },
190 );
191
192 =head1 PRIMARY KEY
193
194 =over 4
195
196 =item * L</id>
197
198 =back
199
200 =cut
201
202 __PACKAGE__->set_primary_key("id");
203
204 =head1 RELATIONS
205
206 =head2 edifact_messages
207
208 Type: has_many
209
210 Related object: L<Koha::Schema::Result::EdifactMessage>
211
212 =cut
213
214 __PACKAGE__->has_many(
215   "edifact_messages",
216   "Koha::Schema::Result::EdifactMessage",
217   { "foreign.edi_acct" => "self.id" },
218   { cascade_copy => 0, cascade_delete => 0 },
219 );
220
221 =head2 shipment_budget
222
223 Type: belongs_to
224
225 Related object: L<Koha::Schema::Result::Aqbudget>
226
227 =cut
228
229 __PACKAGE__->belongs_to(
230   "shipment_budget",
231   "Koha::Schema::Result::Aqbudget",
232   { budget_id => "shipment_budget" },
233   {
234     is_deferrable => 1,
235     join_type     => "LEFT",
236     on_delete     => "RESTRICT",
237     on_update     => "RESTRICT",
238   },
239 );
240
241 =head2 vendor
242
243 Type: belongs_to
244
245 Related object: L<Koha::Schema::Result::Aqbookseller>
246
247 =cut
248
249 __PACKAGE__->belongs_to(
250   "vendor",
251   "Koha::Schema::Result::Aqbookseller",
252   { id => "vendor_id" },
253   {
254     is_deferrable => 1,
255     join_type     => "LEFT",
256     on_delete     => "RESTRICT",
257     on_update     => "RESTRICT",
258   },
259 );
260
261
262 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-18 14:08:05
263 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yDbPFtwV40n3o+fFoxR99g
264
265
266 # You can replace this text with custom code or comments, and it will be preserved on regeneration
267 1;