Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / Aqcontact.pm
1 use utf8;
2 package Koha::Schema::Result::Aqcontact;
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::Aqcontact
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqcontacts>
19
20 =cut
21
22 __PACKAGE__->table("aqcontacts");
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: 100
37
38 =head2 position
39
40   data_type: 'varchar'
41   is_nullable: 1
42   size: 100
43
44 =head2 phone
45
46   data_type: 'varchar'
47   is_nullable: 1
48   size: 100
49
50 =head2 altphone
51
52   data_type: 'varchar'
53   is_nullable: 1
54   size: 100
55
56 =head2 fax
57
58   data_type: 'varchar'
59   is_nullable: 1
60   size: 100
61
62 =head2 email
63
64   data_type: 'varchar'
65   is_nullable: 1
66   size: 100
67
68 =head2 notes
69
70   data_type: 'longtext'
71   is_nullable: 1
72
73 =head2 orderacquisition
74
75   data_type: 'tinyint'
76   default_value: 0
77   is_nullable: 0
78
79 =head2 claimacquisition
80
81   data_type: 'tinyint'
82   default_value: 0
83   is_nullable: 0
84
85 =head2 claimissues
86
87   data_type: 'tinyint'
88   default_value: 0
89   is_nullable: 0
90
91 =head2 acqprimary
92
93   data_type: 'tinyint'
94   default_value: 0
95   is_nullable: 0
96
97 =head2 serialsprimary
98
99   data_type: 'tinyint'
100   default_value: 0
101   is_nullable: 0
102
103 =head2 booksellerid
104
105   data_type: 'integer'
106   is_foreign_key: 1
107   is_nullable: 0
108
109 =cut
110
111 __PACKAGE__->add_columns(
112   "id",
113   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
114   "name",
115   { data_type => "varchar", is_nullable => 1, size => 100 },
116   "position",
117   { data_type => "varchar", is_nullable => 1, size => 100 },
118   "phone",
119   { data_type => "varchar", is_nullable => 1, size => 100 },
120   "altphone",
121   { data_type => "varchar", is_nullable => 1, size => 100 },
122   "fax",
123   { data_type => "varchar", is_nullable => 1, size => 100 },
124   "email",
125   { data_type => "varchar", is_nullable => 1, size => 100 },
126   "notes",
127   { data_type => "longtext", is_nullable => 1 },
128   "orderacquisition",
129   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
130   "claimacquisition",
131   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
132   "claimissues",
133   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
134   "acqprimary",
135   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
136   "serialsprimary",
137   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
138   "booksellerid",
139   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
140 );
141
142 =head1 PRIMARY KEY
143
144 =over 4
145
146 =item * L</id>
147
148 =back
149
150 =cut
151
152 __PACKAGE__->set_primary_key("id");
153
154 =head1 RELATIONS
155
156 =head2 booksellerid
157
158 Type: belongs_to
159
160 Related object: L<Koha::Schema::Result::Aqbookseller>
161
162 =cut
163
164 __PACKAGE__->belongs_to(
165   "booksellerid",
166   "Koha::Schema::Result::Aqbookseller",
167   { id => "booksellerid" },
168   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
169 );
170
171
172 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
173 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R2x8Z9Db2oDULEODgLuw8Q
174
175 sub koha_object_class {
176     'Koha::Acquisition::Bookseller::Contact';
177 }
178 sub koha_objects_class {
179     'Koha::Acquisition::Bookseller::Contacts';
180 }
181
182 1;