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");
58 datetime_undef_if_invalid: 1
67 =head2 download_directory
72 =head2 upload_directory
83 =head2 id_code_qualifier
103 =head2 invoices_enabled
109 =head2 orders_enabled
115 =head2 responses_enabled
127 =head2 shipment_budget
136 default_value: (empty string)
142 __PACKAGE__
->add_columns(
144 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
146 { data_type
=> "text", is_nullable
=> 0 },
148 { data_type
=> "varchar", is_nullable
=> 1, size
=> 40 },
150 { data_type
=> "varchar", is_nullable
=> 1, size
=> 40 },
152 { data_type
=> "varchar", is_nullable
=> 1, size
=> 40 },
154 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
156 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
157 "download_directory",
158 { data_type
=> "text", is_nullable
=> 1 },
160 { data_type
=> "text", is_nullable
=> 1 },
162 { data_type
=> "varchar", is_nullable
=> 1, size
=> 20 },
164 { data_type
=> "varchar", default_value
=> 14, is_nullable
=> 1, size
=> 3 },
166 { data_type
=> "varchar", default_value
=> "FTP", is_nullable
=> 1, size
=> 6 },
168 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
170 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
172 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
174 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
176 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
178 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
180 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 256 },
193 __PACKAGE__
->set_primary_key("id");
197 =head2 edifact_messages
201 Related object: L<Koha::Schema::Result::EdifactMessage>
205 __PACKAGE__
->has_many(
207 "Koha::Schema::Result::EdifactMessage",
208 { "foreign.edi_acct" => "self.id" },
209 { cascade_copy
=> 0, cascade_delete
=> 0 },
212 =head2 shipment_budget
216 Related object: L<Koha::Schema::Result::Aqbudget>
220 __PACKAGE__
->belongs_to(
222 "Koha::Schema::Result::Aqbudget",
223 { budget_id
=> "shipment_budget" },
227 on_delete
=> "RESTRICT",
228 on_update
=> "RESTRICT",
236 Related object: L<Koha::Schema::Result::Aqbookseller>
240 __PACKAGE__
->belongs_to(
242 "Koha::Schema::Result::Aqbookseller",
243 { id
=> "vendor_id" },
247 on_delete
=> "RESTRICT",
248 on_update
=> "RESTRICT",
253 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-01 21:58:03
254 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rsSTteR7nV22B/kxr33BBA
257 # You can replace this text with custom code or comments, and it will be preserved on regeneration