Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / Aqbasketgroup.pm
1 package Koha::Schema::Result::Aqbasketgroup;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Aqbasketgroup
15
16 =cut
17
18 __PACKAGE__->table("aqbasketgroups");
19
20 =head1 ACCESSORS
21
22 =head2 id
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 name
29
30   data_type: 'varchar'
31   is_nullable: 1
32   size: 50
33
34 =head2 closed
35
36   data_type: 'tinyint'
37   is_nullable: 1
38
39 =head2 booksellerid
40
41   data_type: 'integer'
42   is_foreign_key: 1
43   is_nullable: 0
44
45 =head2 deliveryplace
46
47   data_type: 'varchar'
48   is_nullable: 1
49   size: 10
50
51 =head2 freedeliveryplace
52
53   data_type: 'text'
54   is_nullable: 1
55
56 =head2 deliverycomment
57
58   data_type: 'varchar'
59   is_nullable: 1
60   size: 255
61
62 =head2 billingplace
63
64   data_type: 'varchar'
65   is_nullable: 1
66   size: 10
67
68 =cut
69
70 __PACKAGE__->add_columns(
71   "id",
72   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73   "name",
74   { data_type => "varchar", is_nullable => 1, size => 50 },
75   "closed",
76   { data_type => "tinyint", is_nullable => 1 },
77   "booksellerid",
78   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
79   "deliveryplace",
80   { data_type => "varchar", is_nullable => 1, size => 10 },
81   "freedeliveryplace",
82   { data_type => "text", is_nullable => 1 },
83   "deliverycomment",
84   { data_type => "varchar", is_nullable => 1, size => 255 },
85   "billingplace",
86   { data_type => "varchar", is_nullable => 1, size => 10 },
87 );
88 __PACKAGE__->set_primary_key("id");
89
90 =head1 RELATIONS
91
92 =head2 aqbaskets
93
94 Type: has_many
95
96 Related object: L<Koha::Schema::Result::Aqbasket>
97
98 =cut
99
100 __PACKAGE__->has_many(
101   "aqbaskets",
102   "Koha::Schema::Result::Aqbasket",
103   { "foreign.basketgroupid" => "self.id" },
104   { cascade_copy => 0, cascade_delete => 0 },
105 );
106
107 =head2 booksellerid
108
109 Type: belongs_to
110
111 Related object: L<Koha::Schema::Result::Aqbookseller>
112
113 =cut
114
115 __PACKAGE__->belongs_to(
116   "booksellerid",
117   "Koha::Schema::Result::Aqbookseller",
118   { id => "booksellerid" },
119   { on_delete => "CASCADE", on_update => "CASCADE" },
120 );
121
122
123 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fm4sF0IGJYdSejZIB4uoBQ
125
126
127 # You can replace this text with custom content, and it will be preserved on regeneration
128 1;