618ebd96324bfc21b509a2362ec7124f1b13805a
[koha-equinox.git] / Koha / Schema / Result / Aqbasketgroup.pm
1 use utf8;
2 package Koha::Schema::Result::Aqbasketgroup;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::Aqbasketgroup
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqbasketgroups>
19
20 =cut
21
22 __PACKAGE__->table("aqbasketgroups");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 name
33
34   data_type: 'varchar'
35   is_nullable: 1
36   size: 50
37
38 =head2 closed
39
40   data_type: 'tinyint'
41   is_nullable: 1
42
43 =head2 booksellerid
44
45   data_type: 'integer'
46   is_foreign_key: 1
47   is_nullable: 0
48
49 =head2 deliveryplace
50
51   data_type: 'varchar'
52   is_nullable: 1
53   size: 10
54
55 =head2 freedeliveryplace
56
57   data_type: 'mediumtext'
58   is_nullable: 1
59
60 =head2 deliverycomment
61
62   data_type: 'varchar'
63   is_nullable: 1
64   size: 255
65
66 =head2 billingplace
67
68   data_type: 'varchar'
69   is_nullable: 1
70   size: 10
71
72 =cut
73
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 => "mediumtext", 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 },
91 );
92
93 =head1 PRIMARY KEY
94
95 =over 4
96
97 =item * L</id>
98
99 =back
100
101 =cut
102
103 __PACKAGE__->set_primary_key("id");
104
105 =head1 RELATIONS
106
107 =head2 aqbaskets
108
109 Type: has_many
110
111 Related object: L<Koha::Schema::Result::Aqbasket>
112
113 =cut
114
115 __PACKAGE__->has_many(
116   "aqbaskets",
117   "Koha::Schema::Result::Aqbasket",
118   { "foreign.basketgroupid" => "self.id" },
119   { cascade_copy => 0, cascade_delete => 0 },
120 );
121
122 =head2 booksellerid
123
124 Type: belongs_to
125
126 Related object: L<Koha::Schema::Result::Aqbookseller>
127
128 =cut
129
130 __PACKAGE__->belongs_to(
131   "booksellerid",
132   "Koha::Schema::Result::Aqbookseller",
133   { id => "booksellerid" },
134   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
135 );
136
137
138 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9cEWAMwcFKPYPEG1CaaD3w
140
141
142 # You can replace this text with custom content, and it will be preserved on regeneration
143 1;