2 package Koha::Schema::Result::Aqbasket;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Aqbasket
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbasket>
22 __PACKAGE__->table("aqbasket");
40 data_type: 'mediumtext'
45 data_type: 'mediumtext'
57 datetime_undef_if_invalid: 1
63 datetime_undef_if_invalid: 1
79 =head2 booksellerinvoicenumber
81 data_type: 'mediumtext'
117 __PACKAGE__->add_columns(
119 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
121 { data_type => "varchar", is_nullable => 1, size => 50 },
123 { data_type => "mediumtext", is_nullable => 1 },
125 { data_type => "mediumtext", is_nullable => 1 },
127 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
129 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
131 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
134 data_type => "integer",
140 { data_type => "varchar", is_nullable => 1, size => 10 },
141 "booksellerinvoicenumber",
142 { data_type => "mediumtext", is_nullable => 1 },
144 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
146 { data_type => "varchar", is_nullable => 1, size => 10 },
148 { data_type => "varchar", is_nullable => 1, size => 10 },
150 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
152 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
165 __PACKAGE__->set_primary_key("basketno");
173 Related object: L<Koha::Schema::Result::Aqbasketuser>
177 __PACKAGE__->has_many(
179 "Koha::Schema::Result::Aqbasketuser",
180 { "foreign.basketno" => "self.basketno" },
181 { cascade_copy => 0, cascade_delete => 0 },
188 Related object: L<Koha::Schema::Result::Aqorder>
192 __PACKAGE__->has_many(
194 "Koha::Schema::Result::Aqorder",
195 { "foreign.basketno" => "self.basketno" },
196 { cascade_copy => 0, cascade_delete => 0 },
203 Related object: L<Koha::Schema::Result::Aqbasketgroup>
207 __PACKAGE__->belongs_to(
209 "Koha::Schema::Result::Aqbasketgroup",
210 { id => "basketgroupid" },
214 on_delete => "RESTRICT",
215 on_update => "CASCADE",
223 Related object: L<Koha::Schema::Result::Aqbookseller>
227 __PACKAGE__->belongs_to(
229 "Koha::Schema::Result::Aqbookseller",
230 { id => "booksellerid" },
231 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
238 Related object: L<Koha::Schema::Result::Branch>
242 __PACKAGE__->belongs_to(
244 "Koha::Schema::Result::Branch",
245 { branchcode => "branch" },
249 on_delete => "SET NULL",
250 on_update => "CASCADE",
254 =head2 contractnumber
258 Related object: L<Koha::Schema::Result::Aqcontract>
262 __PACKAGE__->belongs_to(
264 "Koha::Schema::Result::Aqcontract",
265 { contractnumber => "contractnumber" },
269 on_delete => "RESTRICT",
270 on_update => "RESTRICT",
274 =head2 edifact_messages
278 Related object: L<Koha::Schema::Result::EdifactMessage>
282 __PACKAGE__->has_many(
284 "Koha::Schema::Result::EdifactMessage",
285 { "foreign.basketno" => "self.basketno" },
286 { cascade_copy => 0, cascade_delete => 0 },
289 =head2 borrowernumbers
293 Composing rels: L</aqbasketusers> -> borrowernumber
297 __PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
300 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 13:13:55
301 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6gRJtrZ6ZXLHjqX281d9Hg
304 # You can replace this text with custom code or comments, and it will be preserved on regeneration