Bug 17855 - Followup patch following requests in comments 176 and 177
[koha.git] / Koha / Schema / Result / Aqbasketgroup.pm
blob6b3348e3af4a56f697984383698ee1701e06bebf
1 use utf8;
2 package Koha::Schema::Result::Aqbasketgroup;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Aqbasketgroup
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbasketgroups>
20 =cut
22 __PACKAGE__->table("aqbasketgroups");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 name
34 data_type: 'varchar'
35 is_nullable: 1
36 size: 50
38 =head2 closed
40 data_type: 'tinyint'
41 is_nullable: 1
43 =head2 booksellerid
45 data_type: 'integer'
46 is_foreign_key: 1
47 is_nullable: 0
49 =head2 deliveryplace
51 data_type: 'varchar'
52 is_nullable: 1
53 size: 10
55 =head2 freedeliveryplace
57 data_type: 'text'
58 is_nullable: 1
60 =head2 deliverycomment
62 data_type: 'varchar'
63 is_nullable: 1
64 size: 255
66 =head2 billingplace
68 data_type: 'varchar'
69 is_nullable: 1
70 size: 10
72 =cut
74 __PACKAGE__->add_columns(
75 "id",
76 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
77 "name",
78 { data_type => "varchar", is_nullable => 1, size => 50 },
79 "closed",
80 { data_type => "tinyint", is_nullable => 1 },
81 "booksellerid",
82 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 "deliveryplace",
84 { data_type => "varchar", is_nullable => 1, size => 10 },
85 "freedeliveryplace",
86 { data_type => "text", is_nullable => 1 },
87 "deliverycomment",
88 { data_type => "varchar", is_nullable => 1, size => 255 },
89 "billingplace",
90 { data_type => "varchar", is_nullable => 1, size => 10 },
93 =head1 PRIMARY KEY
95 =over 4
97 =item * L</id>
99 =back
101 =cut
103 __PACKAGE__->set_primary_key("id");
105 =head1 RELATIONS
107 =head2 aqbaskets
109 Type: has_many
111 Related object: L<Koha::Schema::Result::Aqbasket>
113 =cut
115 __PACKAGE__->has_many(
116 "aqbaskets",
117 "Koha::Schema::Result::Aqbasket",
118 { "foreign.basketgroupid" => "self.id" },
119 { cascade_copy => 0, cascade_delete => 0 },
122 =head2 booksellerid
124 Type: belongs_to
126 Related object: L<Koha::Schema::Result::Aqbookseller>
128 =cut
130 __PACKAGE__->belongs_to(
131 "booksellerid",
132 "Koha::Schema::Result::Aqbookseller",
133 { id => "booksellerid" },
134 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
138 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tT40YZgK7gOfNG3DVFTHiA
142 # You can replace this text with custom content, and it will be preserved on regeneration