1 package Koha::Schema::Result::Aqbasket;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Aqbasket
18 __PACKAGE__->table("aqbasket");
36 data_type: 'mediumtext'
41 data_type: 'mediumtext'
73 =head2 booksellerinvoicenumber
75 data_type: 'mediumtext'
86 __PACKAGE__->add_columns(
88 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
90 { data_type => "varchar", is_nullable => 1, size => 50 },
92 { data_type => "mediumtext", is_nullable => 1 },
94 { data_type => "mediumtext", is_nullable => 1 },
96 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
98 { data_type => "date", is_nullable => 1 },
100 { data_type => "date", is_nullable => 1 },
103 data_type => "integer",
109 { data_type => "varchar", is_nullable => 1, size => 10 },
110 "booksellerinvoicenumber",
111 { data_type => "mediumtext", is_nullable => 1 },
113 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
115 __PACKAGE__->set_primary_key("basketno");
123 Related object: L<Koha::Schema::Result::Aqbookseller>
127 __PACKAGE__->belongs_to(
129 "Koha::Schema::Result::Aqbookseller",
130 { id => "booksellerid" },
131 { on_delete => "CASCADE", on_update => "CASCADE" },
134 =head2 contractnumber
138 Related object: L<Koha::Schema::Result::Aqcontract>
142 __PACKAGE__->belongs_to(
144 "Koha::Schema::Result::Aqcontract",
145 { contractnumber => "contractnumber" },
146 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
153 Related object: L<Koha::Schema::Result::Aqbasketgroup>
157 __PACKAGE__->belongs_to(
159 "Koha::Schema::Result::Aqbasketgroup",
160 { id => "basketgroupid" },
161 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
168 Related object: L<Koha::Schema::Result::Aqorder>
172 __PACKAGE__->has_many(
174 "Koha::Schema::Result::Aqorder",
175 { "foreign.basketno" => "self.basketno" },
176 { cascade_copy => 0, cascade_delete => 0 },
180 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
181 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eRG3p93qKZhp3rNPwG60Ig
184 # You can replace this text with custom content, and it will be preserved on regeneration