2 package Koha::Schema::Result::Aqbookseller;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Aqbookseller
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbooksellers>
22 __PACKAGE__->table("aqbooksellers");
34 data_type: 'mediumtext'
39 data_type: 'mediumtext'
44 data_type: 'mediumtext'
49 data_type: 'mediumtext'
54 data_type: 'mediumtext'
65 data_type: 'mediumtext'
70 data_type: 'mediumtext'
76 default_value: (empty string)
82 data_type: 'mediumtext'
87 data_type: 'mediumtext'
90 =head2 bookselleremail
92 data_type: 'mediumtext'
97 data_type: 'mediumtext'
102 data_type: 'mediumtext'
170 __PACKAGE__->add_columns(
172 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
174 { data_type => "mediumtext", is_nullable => 0 },
176 { data_type => "mediumtext", is_nullable => 1 },
178 { data_type => "mediumtext", is_nullable => 1 },
180 { data_type => "mediumtext", is_nullable => 1 },
182 { data_type => "mediumtext", is_nullable => 1 },
184 { data_type => "varchar", is_nullable => 1, size => 30 },
186 { data_type => "mediumtext", is_nullable => 1 },
188 { data_type => "mediumtext", is_nullable => 1 },
190 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
192 { data_type => "mediumtext", is_nullable => 1 },
194 { data_type => "mediumtext", is_nullable => 1 },
196 { data_type => "mediumtext", is_nullable => 1 },
198 { data_type => "mediumtext", is_nullable => 1 },
200 { data_type => "mediumtext", is_nullable => 1 },
202 { data_type => "varchar", is_nullable => 1, size => 255 },
204 { data_type => "tinyint", is_nullable => 1 },
206 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
208 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
210 { data_type => "tinyint", is_nullable => 1 },
212 { data_type => "tinyint", is_nullable => 1 },
214 { data_type => "tinyint", is_nullable => 1 },
216 { data_type => "decimal", is_nullable => 1, size => [6, 4] },
218 { data_type => "float", is_nullable => 1, size => [6, 4] },
220 { data_type => "varchar", is_nullable => 1, size => 50 },
222 { data_type => "integer", is_nullable => 1 },
235 __PACKAGE__->set_primary_key("id");
239 =head2 aqbasketgroups
243 Related object: L<Koha::Schema::Result::Aqbasketgroup>
247 __PACKAGE__->has_many(
249 "Koha::Schema::Result::Aqbasketgroup",
250 { "foreign.booksellerid" => "self.id" },
251 { cascade_copy => 0, cascade_delete => 0 },
258 Related object: L<Koha::Schema::Result::Aqbasket>
262 __PACKAGE__->has_many(
264 "Koha::Schema::Result::Aqbasket",
265 { "foreign.booksellerid" => "self.id" },
266 { cascade_copy => 0, cascade_delete => 0 },
273 Related object: L<Koha::Schema::Result::Aqcontact>
277 __PACKAGE__->has_many(
279 "Koha::Schema::Result::Aqcontact",
280 { "foreign.booksellerid" => "self.id" },
281 { cascade_copy => 0, cascade_delete => 0 },
288 Related object: L<Koha::Schema::Result::Aqcontract>
292 __PACKAGE__->has_many(
294 "Koha::Schema::Result::Aqcontract",
295 { "foreign.booksellerid" => "self.id" },
296 { cascade_copy => 0, cascade_delete => 0 },
303 Related object: L<Koha::Schema::Result::Aqinvoice>
307 __PACKAGE__->has_many(
309 "Koha::Schema::Result::Aqinvoice",
310 { "foreign.booksellerid" => "self.id" },
311 { cascade_copy => 0, cascade_delete => 0 },
314 =head2 edifact_messages
318 Related object: L<Koha::Schema::Result::EdifactMessage>
322 __PACKAGE__->has_many(
324 "Koha::Schema::Result::EdifactMessage",
325 { "foreign.vendor_id" => "self.id" },
326 { cascade_copy => 0, cascade_delete => 0 },
333 Related object: L<Koha::Schema::Result::Currency>
337 __PACKAGE__->belongs_to(
339 "Koha::Schema::Result::Currency",
340 { currency => "invoiceprice" },
344 on_delete => "CASCADE",
345 on_update => "CASCADE",
353 Related object: L<Koha::Schema::Result::Currency>
357 __PACKAGE__->belongs_to(
359 "Koha::Schema::Result::Currency",
360 { currency => "listprice" },
364 on_delete => "CASCADE",
365 on_update => "CASCADE",
369 =head2 vendor_edi_accounts
373 Related object: L<Koha::Schema::Result::VendorEdiAccount>
377 __PACKAGE__->has_many(
378 "vendor_edi_accounts",
379 "Koha::Schema::Result::VendorEdiAccount",
380 { "foreign.vendor_id" => "self.id" },
381 { cascade_copy => 0, cascade_delete => 0 },
385 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-09 13:43:30
386 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b3aUNZsdvNzEuKScGD7ZPQ
388 __PACKAGE__->add_columns(
389 '+active' => { is_boolean => 1 },
390 '+gstreg' => { is_boolean => 1 },
391 '+listincgst' => { is_boolean => 1 },
392 '+invoiceincgst' => { is_boolean => 1 },
396 # You can replace this text with custom code or comments, and it will be preserved on regeneration