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'
104 __PACKAGE__->add_columns(
106 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
108 { data_type => "varchar", is_nullable => 1, size => 50 },
110 { data_type => "mediumtext", is_nullable => 1 },
112 { data_type => "mediumtext", is_nullable => 1 },
114 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
116 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
118 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
121 data_type => "integer",
127 { data_type => "varchar", is_nullable => 1, size => 10 },
128 "booksellerinvoicenumber",
129 { data_type => "mediumtext", is_nullable => 1 },
131 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
133 { data_type => "varchar", is_nullable => 1, size => 10 },
135 { data_type => "varchar", is_nullable => 1, size => 10 },
148 __PACKAGE__->set_primary_key("basketno");
156 Related object: L<Koha::Schema::Result::Aqorder>
160 __PACKAGE__->has_many(
162 "Koha::Schema::Result::Aqorder",
163 { "foreign.basketno" => "self.basketno" },
164 { cascade_copy => 0, cascade_delete => 0 },
171 Related object: L<Koha::Schema::Result::Aqbasketgroup>
175 __PACKAGE__->belongs_to(
177 "Koha::Schema::Result::Aqbasketgroup",
178 { id => "basketgroupid" },
182 on_delete => "CASCADE",
183 on_update => "CASCADE",
191 Related object: L<Koha::Schema::Result::Aqbookseller>
195 __PACKAGE__->belongs_to(
197 "Koha::Schema::Result::Aqbookseller",
198 { id => "booksellerid" },
199 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
202 =head2 contractnumber
206 Related object: L<Koha::Schema::Result::Aqcontract>
210 __PACKAGE__->belongs_to(
212 "Koha::Schema::Result::Aqcontract",
213 { contractnumber => "contractnumber" },
217 on_delete => "CASCADE",
218 on_update => "CASCADE",
223 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
224 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b4UNvDyA6jbgcTsaasbKYA
227 # You can replace this text with custom content, and it will be preserved on regeneration