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");
76 default_value: (empty string)
90 =head2 bookselleremail
102 data_type: 'longtext'
170 __PACKAGE__
->add_columns(
172 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
174 { data_type
=> "longtext", is_nullable
=> 0 },
176 { data_type
=> "longtext", is_nullable
=> 1 },
178 { data_type
=> "longtext", is_nullable
=> 1 },
180 { data_type
=> "longtext", is_nullable
=> 1 },
182 { data_type
=> "longtext", is_nullable
=> 1 },
184 { data_type
=> "varchar", is_nullable
=> 1, size
=> 30 },
186 { data_type
=> "longtext", is_nullable
=> 1 },
188 { data_type
=> "longtext", is_nullable
=> 1 },
190 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 10 },
192 { data_type
=> "longtext", is_nullable
=> 1 },
194 { data_type
=> "longtext", is_nullable
=> 1 },
196 { data_type
=> "longtext", is_nullable
=> 1 },
198 { data_type
=> "longtext", is_nullable
=> 1 },
200 { data_type
=> "longtext", 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 @ 2018-02-16 17:54:53
386 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DyaF9RbcNAOjPQ1lrxHV3A
388 __PACKAGE__
->add_columns(
389 '+active' => { is_boolean
=> 1 },
390 '+gstreg' => { is_boolean
=> 1 },
391 '+listincgst' => { is_boolean
=> 1 },
392 '+invoiceincgst' => { is_boolean
=> 1 },
395 sub koha_object_class
{
396 'Koha::Acquisition::Bookseller';
398 sub koha_objects_class
{
399 'Koha::Acquisition::Booksellers';