Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::Recall; |
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::Recall |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<recalls> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("recalls"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 recall_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
=head2 borrowernumber |
33 |
|
34 |
data_type: 'integer' |
35 |
default_value: 0 |
36 |
is_foreign_key: 1 |
37 |
is_nullable: 0 |
38 |
|
39 |
=head2 recalldate |
40 |
|
41 |
data_type: 'date' |
42 |
datetime_undef_if_invalid: 1 |
43 |
is_nullable: 1 |
44 |
|
45 |
=head2 biblionumber |
46 |
|
47 |
data_type: 'integer' |
48 |
default_value: 0 |
49 |
is_foreign_key: 1 |
50 |
is_nullable: 0 |
51 |
|
52 |
=head2 branchcode |
53 |
|
54 |
data_type: 'varchar' |
55 |
is_foreign_key: 1 |
56 |
is_nullable: 1 |
57 |
size: 10 |
58 |
|
59 |
=head2 cancellationdate |
60 |
|
61 |
data_type: 'date' |
62 |
datetime_undef_if_invalid: 1 |
63 |
is_nullable: 1 |
64 |
|
65 |
=head2 recallnotes |
66 |
|
67 |
data_type: 'mediumtext' |
68 |
is_nullable: 1 |
69 |
|
70 |
=head2 priority |
71 |
|
72 |
data_type: 'smallint' |
73 |
is_nullable: 1 |
74 |
|
75 |
=head2 found |
76 |
|
77 |
data_type: 'varchar' |
78 |
is_nullable: 1 |
79 |
size: 1 |
80 |
|
81 |
=head2 timestamp |
82 |
|
83 |
data_type: 'timestamp' |
84 |
datetime_undef_if_invalid: 1 |
85 |
default_value: current_timestamp |
86 |
is_nullable: 0 |
87 |
|
88 |
=head2 itemnumber |
89 |
|
90 |
data_type: 'integer' |
91 |
is_foreign_key: 1 |
92 |
is_nullable: 1 |
93 |
|
94 |
=head2 waitingdate |
95 |
|
96 |
data_type: 'date' |
97 |
datetime_undef_if_invalid: 1 |
98 |
is_nullable: 1 |
99 |
|
100 |
=head2 expirationdate |
101 |
|
102 |
data_type: 'date' |
103 |
datetime_undef_if_invalid: 1 |
104 |
is_nullable: 1 |
105 |
|
106 |
=head2 itemtype |
107 |
|
108 |
data_type: 'varchar' |
109 |
is_foreign_key: 1 |
110 |
is_nullable: 1 |
111 |
size: 10 |
112 |
|
113 |
=cut |
114 |
|
115 |
__PACKAGE__->add_columns( |
116 |
"recall_id", |
117 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
118 |
"borrowernumber", |
119 |
{ |
120 |
data_type => "integer", |
121 |
default_value => 0, |
122 |
is_foreign_key => 1, |
123 |
is_nullable => 0, |
124 |
}, |
125 |
"recalldate", |
126 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
127 |
"biblionumber", |
128 |
{ |
129 |
data_type => "integer", |
130 |
default_value => 0, |
131 |
is_foreign_key => 1, |
132 |
is_nullable => 0, |
133 |
}, |
134 |
"branchcode", |
135 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
136 |
"cancellationdate", |
137 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
138 |
"recallnotes", |
139 |
{ data_type => "mediumtext", is_nullable => 1 }, |
140 |
"priority", |
141 |
{ data_type => "smallint", is_nullable => 1 }, |
142 |
"found", |
143 |
{ data_type => "varchar", is_nullable => 1, size => 1 }, |
144 |
"timestamp", |
145 |
{ |
146 |
data_type => "timestamp", |
147 |
datetime_undef_if_invalid => 1, |
148 |
default_value => \"current_timestamp", |
149 |
is_nullable => 0, |
150 |
}, |
151 |
"itemnumber", |
152 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
153 |
"waitingdate", |
154 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
155 |
"expirationdate", |
156 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
157 |
"itemtype", |
158 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
159 |
); |
160 |
|
161 |
=head1 PRIMARY KEY |
162 |
|
163 |
=over 4 |
164 |
|
165 |
=item * L</recall_id> |
166 |
|
167 |
=back |
168 |
|
169 |
=cut |
170 |
|
171 |
__PACKAGE__->set_primary_key("recall_id"); |
172 |
|
173 |
=head1 RELATIONS |
174 |
|
175 |
=head2 biblionumber |
176 |
|
177 |
Type: belongs_to |
178 |
|
179 |
Related object: L<Koha::Schema::Result::Biblio> |
180 |
|
181 |
=cut |
182 |
|
183 |
__PACKAGE__->belongs_to( |
184 |
"biblionumber", |
185 |
"Koha::Schema::Result::Biblio", |
186 |
{ biblionumber => "biblionumber" }, |
187 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
188 |
); |
189 |
|
190 |
=head2 borrowernumber |
191 |
|
192 |
Type: belongs_to |
193 |
|
194 |
Related object: L<Koha::Schema::Result::Borrower> |
195 |
|
196 |
=cut |
197 |
|
198 |
__PACKAGE__->belongs_to( |
199 |
"borrowernumber", |
200 |
"Koha::Schema::Result::Borrower", |
201 |
{ borrowernumber => "borrowernumber" }, |
202 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
203 |
); |
204 |
|
205 |
=head2 branchcode |
206 |
|
207 |
Type: belongs_to |
208 |
|
209 |
Related object: L<Koha::Schema::Result::Branch> |
210 |
|
211 |
=cut |
212 |
|
213 |
__PACKAGE__->belongs_to( |
214 |
"branchcode", |
215 |
"Koha::Schema::Result::Branch", |
216 |
{ branchcode => "branchcode" }, |
217 |
{ |
218 |
is_deferrable => 1, |
219 |
join_type => "LEFT", |
220 |
on_delete => "CASCADE", |
221 |
on_update => "CASCADE", |
222 |
}, |
223 |
); |
224 |
|
225 |
=head2 itemnumber |
226 |
|
227 |
Type: belongs_to |
228 |
|
229 |
Related object: L<Koha::Schema::Result::Item> |
230 |
|
231 |
=cut |
232 |
|
233 |
__PACKAGE__->belongs_to( |
234 |
"itemnumber", |
235 |
"Koha::Schema::Result::Item", |
236 |
{ itemnumber => "itemnumber" }, |
237 |
{ |
238 |
is_deferrable => 1, |
239 |
join_type => "LEFT", |
240 |
on_delete => "CASCADE", |
241 |
on_update => "CASCADE", |
242 |
}, |
243 |
); |
244 |
|
245 |
=head2 itemtype |
246 |
|
247 |
Type: belongs_to |
248 |
|
249 |
Related object: L<Koha::Schema::Result::Itemtype> |
250 |
|
251 |
=cut |
252 |
|
253 |
__PACKAGE__->belongs_to( |
254 |
"itemtype", |
255 |
"Koha::Schema::Result::Itemtype", |
256 |
{ itemtype => "itemtype" }, |
257 |
{ |
258 |
is_deferrable => 1, |
259 |
join_type => "LEFT", |
260 |
on_delete => "CASCADE", |
261 |
on_update => "CASCADE", |
262 |
}, |
263 |
); |
264 |
|
265 |
|
266 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-25 23:50:29 |
267 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0dtkOcX0Cuc8MdpKxhcPUA |
268 |
|
269 |
|
270 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
271 |
1; |