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'
111 __PACKAGE__->add_columns(
113 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
115 { data_type => "varchar", is_nullable => 1, size => 50 },
117 { data_type => "mediumtext", is_nullable => 1 },
119 { data_type => "mediumtext", is_nullable => 1 },
121 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
123 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
125 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
128 data_type => "integer",
134 { data_type => "varchar", is_nullable => 1, size => 10 },
135 "booksellerinvoicenumber",
136 { data_type => "mediumtext", is_nullable => 1 },
138 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
140 { data_type => "varchar", is_nullable => 1, size => 10 },
142 { data_type => "varchar", is_nullable => 1, size => 10 },
144 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
157 __PACKAGE__->set_primary_key("basketno");
165 Related object: L<Koha::Schema::Result::Aqbasketuser>
169 __PACKAGE__->has_many(
171 "Koha::Schema::Result::Aqbasketuser",
172 { "foreign.basketno" => "self.basketno" },
173 { cascade_copy => 0, cascade_delete => 0 },
180 Related object: L<Koha::Schema::Result::Aqorder>
184 __PACKAGE__->has_many(
186 "Koha::Schema::Result::Aqorder",
187 { "foreign.basketno" => "self.basketno" },
188 { cascade_copy => 0, cascade_delete => 0 },
195 Related object: L<Koha::Schema::Result::Aqbasketgroup>
199 __PACKAGE__->belongs_to(
201 "Koha::Schema::Result::Aqbasketgroup",
202 { id => "basketgroupid" },
206 on_delete => "RESTRICT",
207 on_update => "CASCADE",
215 Related object: L<Koha::Schema::Result::Aqbookseller>
219 __PACKAGE__->belongs_to(
221 "Koha::Schema::Result::Aqbookseller",
222 { id => "booksellerid" },
223 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" },
230 Related object: L<Koha::Schema::Result::Branch>
234 __PACKAGE__->belongs_to(
236 "Koha::Schema::Result::Branch",
237 { branchcode => "branch" },
241 on_delete => "SET NULL",
242 on_update => "CASCADE",
246 =head2 contractnumber
250 Related object: L<Koha::Schema::Result::Aqcontract>
254 __PACKAGE__->belongs_to(
256 "Koha::Schema::Result::Aqcontract",
257 { contractnumber => "contractnumber" },
261 on_delete => "RESTRICT",
262 on_update => "RESTRICT",
266 =head2 edifact_messages
270 Related object: L<Koha::Schema::Result::EdifactMessage>
274 __PACKAGE__->has_many(
276 "Koha::Schema::Result::EdifactMessage",
277 { "foreign.basketno" => "self.basketno" },
278 { cascade_copy => 0, cascade_delete => 0 },
281 =head2 borrowernumbers
285 Composing rels: L</aqbasketusers> -> borrowernumber
289 __PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
292 # Created by DBIx::Class::Schema::Loader v0.07033 @ 2014-09-02 11:37:47
293 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tsMzwP7eofOR27sfZSTqFQ
296 # You can replace this text with custom content, and it will be preserved on regeneration