2 package Koha::Schema::Result::VendorEdiAccount;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::VendorEdiAccount
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<vendor_edi_accounts>
22 __PACKAGE__->table("vendor_edi_accounts");
34 data_type: 'mediumtext'
58 datetime_undef_if_invalid: 1
67 =head2 download_directory
69 data_type: 'mediumtext'
72 =head2 upload_directory
74 data_type: 'mediumtext'
90 =head2 id_code_qualifier
104 =head2 quotes_enabled
110 =head2 invoices_enabled
116 =head2 orders_enabled
122 =head2 responses_enabled
134 =head2 shipment_budget
143 default_value: (empty string)
149 __PACKAGE__->add_columns(
151 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
153 { data_type => "mediumtext", is_nullable => 0 },
155 { data_type => "varchar", is_nullable => 1, size => 40 },
157 { data_type => "varchar", is_nullable => 1, size => 40 },
159 { data_type => "varchar", is_nullable => 1, size => 40 },
161 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
163 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
164 "download_directory",
165 { data_type => "mediumtext", is_nullable => 1 },
167 { data_type => "mediumtext", is_nullable => 1 },
169 { data_type => "varchar", is_nullable => 1, size => 20 },
171 { data_type => "varchar", default_value => "EUR", is_nullable => 1, size => 3 },
173 { data_type => "varchar", default_value => 14, is_nullable => 1, size => 3 },
175 { data_type => "varchar", default_value => "FTP", is_nullable => 1, size => 6 },
177 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
179 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
181 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
183 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
185 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
187 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
189 { data_type => "varchar", default_value => "", is_nullable => 0, size => 256 },
202 __PACKAGE__->set_primary_key("id");
206 =head2 edifact_messages
210 Related object: L<Koha::Schema::Result::EdifactMessage>
214 __PACKAGE__->has_many(
216 "Koha::Schema::Result::EdifactMessage",
217 { "foreign.edi_acct" => "self.id" },
218 { cascade_copy => 0, cascade_delete => 0 },
221 =head2 shipment_budget
225 Related object: L<Koha::Schema::Result::Aqbudget>
229 __PACKAGE__->belongs_to(
231 "Koha::Schema::Result::Aqbudget",
232 { budget_id => "shipment_budget" },
236 on_delete => "RESTRICT",
237 on_update => "RESTRICT",
245 Related object: L<Koha::Schema::Result::Aqbookseller>
249 __PACKAGE__->belongs_to(
251 "Koha::Schema::Result::Aqbookseller",
252 { id => "vendor_id" },
256 on_delete => "RESTRICT",
257 on_update => "RESTRICT",
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
266 # You can replace this text with custom code or comments, and it will be preserved on regeneration