Line 0
Link Here
|
|
|
1 |
package Koha::Schema::Result::Borrower; |
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::Borrower |
15 |
|
16 |
=cut |
17 |
|
18 |
__PACKAGE__->table("borrowers"); |
19 |
|
20 |
=head1 ACCESSORS |
21 |
|
22 |
=head2 borrowernumber |
23 |
|
24 |
data_type: 'integer' |
25 |
is_auto_increment: 1 |
26 |
is_nullable: 0 |
27 |
|
28 |
=head2 cardnumber |
29 |
|
30 |
data_type: 'varchar' |
31 |
is_nullable: 1 |
32 |
size: 16 |
33 |
|
34 |
=head2 surname |
35 |
|
36 |
data_type: 'mediumtext' |
37 |
is_nullable: 0 |
38 |
|
39 |
=head2 firstname |
40 |
|
41 |
data_type: 'text' |
42 |
is_nullable: 1 |
43 |
|
44 |
=head2 title |
45 |
|
46 |
data_type: 'mediumtext' |
47 |
is_nullable: 1 |
48 |
|
49 |
=head2 othernames |
50 |
|
51 |
data_type: 'mediumtext' |
52 |
is_nullable: 1 |
53 |
|
54 |
=head2 initials |
55 |
|
56 |
data_type: 'text' |
57 |
is_nullable: 1 |
58 |
|
59 |
=head2 streetnumber |
60 |
|
61 |
data_type: 'varchar' |
62 |
is_nullable: 1 |
63 |
size: 10 |
64 |
|
65 |
=head2 streettype |
66 |
|
67 |
data_type: 'varchar' |
68 |
is_nullable: 1 |
69 |
size: 50 |
70 |
|
71 |
=head2 address |
72 |
|
73 |
data_type: 'mediumtext' |
74 |
is_nullable: 0 |
75 |
|
76 |
=head2 address2 |
77 |
|
78 |
data_type: 'text' |
79 |
is_nullable: 1 |
80 |
|
81 |
=head2 city |
82 |
|
83 |
data_type: 'mediumtext' |
84 |
is_nullable: 0 |
85 |
|
86 |
=head2 state |
87 |
|
88 |
data_type: 'text' |
89 |
is_nullable: 1 |
90 |
|
91 |
=head2 zipcode |
92 |
|
93 |
data_type: 'varchar' |
94 |
is_nullable: 1 |
95 |
size: 25 |
96 |
|
97 |
=head2 country |
98 |
|
99 |
data_type: 'text' |
100 |
is_nullable: 1 |
101 |
|
102 |
=head2 email |
103 |
|
104 |
data_type: 'mediumtext' |
105 |
is_nullable: 1 |
106 |
|
107 |
=head2 phone |
108 |
|
109 |
data_type: 'text' |
110 |
is_nullable: 1 |
111 |
|
112 |
=head2 mobile |
113 |
|
114 |
data_type: 'varchar' |
115 |
is_nullable: 1 |
116 |
size: 50 |
117 |
|
118 |
=head2 fax |
119 |
|
120 |
data_type: 'mediumtext' |
121 |
is_nullable: 1 |
122 |
|
123 |
=head2 emailpro |
124 |
|
125 |
data_type: 'text' |
126 |
is_nullable: 1 |
127 |
|
128 |
=head2 phonepro |
129 |
|
130 |
data_type: 'text' |
131 |
is_nullable: 1 |
132 |
|
133 |
=head2 b_streetnumber |
134 |
|
135 |
data_type: 'varchar' |
136 |
is_nullable: 1 |
137 |
size: 10 |
138 |
|
139 |
=head2 b_streettype |
140 |
|
141 |
data_type: 'varchar' |
142 |
is_nullable: 1 |
143 |
size: 50 |
144 |
|
145 |
=head2 b_address |
146 |
|
147 |
data_type: 'varchar' |
148 |
is_nullable: 1 |
149 |
size: 100 |
150 |
|
151 |
=head2 b_address2 |
152 |
|
153 |
data_type: 'text' |
154 |
is_nullable: 1 |
155 |
|
156 |
=head2 b_city |
157 |
|
158 |
data_type: 'mediumtext' |
159 |
is_nullable: 1 |
160 |
|
161 |
=head2 b_state |
162 |
|
163 |
data_type: 'text' |
164 |
is_nullable: 1 |
165 |
|
166 |
=head2 b_zipcode |
167 |
|
168 |
data_type: 'varchar' |
169 |
is_nullable: 1 |
170 |
size: 25 |
171 |
|
172 |
=head2 b_country |
173 |
|
174 |
data_type: 'text' |
175 |
is_nullable: 1 |
176 |
|
177 |
=head2 b_email |
178 |
|
179 |
data_type: 'text' |
180 |
is_nullable: 1 |
181 |
|
182 |
=head2 b_phone |
183 |
|
184 |
data_type: 'mediumtext' |
185 |
is_nullable: 1 |
186 |
|
187 |
=head2 dateofbirth |
188 |
|
189 |
data_type: 'date' |
190 |
datetime_undef_if_invalid: 1 |
191 |
is_nullable: 1 |
192 |
|
193 |
=head2 branchcode |
194 |
|
195 |
data_type: 'varchar' |
196 |
default_value: (empty string) |
197 |
is_foreign_key: 1 |
198 |
is_nullable: 0 |
199 |
size: 10 |
200 |
|
201 |
=head2 categorycode |
202 |
|
203 |
data_type: 'varchar' |
204 |
default_value: (empty string) |
205 |
is_foreign_key: 1 |
206 |
is_nullable: 0 |
207 |
size: 10 |
208 |
|
209 |
=head2 dateenrolled |
210 |
|
211 |
data_type: 'date' |
212 |
datetime_undef_if_invalid: 1 |
213 |
is_nullable: 1 |
214 |
|
215 |
=head2 dateexpiry |
216 |
|
217 |
data_type: 'date' |
218 |
datetime_undef_if_invalid: 1 |
219 |
is_nullable: 1 |
220 |
|
221 |
=head2 gonenoaddress |
222 |
|
223 |
data_type: 'tinyint' |
224 |
is_nullable: 1 |
225 |
|
226 |
=head2 lost |
227 |
|
228 |
data_type: 'tinyint' |
229 |
is_nullable: 1 |
230 |
|
231 |
=head2 debarred |
232 |
|
233 |
data_type: 'date' |
234 |
datetime_undef_if_invalid: 1 |
235 |
is_nullable: 1 |
236 |
|
237 |
=head2 debarredcomment |
238 |
|
239 |
data_type: 'varchar' |
240 |
is_nullable: 1 |
241 |
size: 255 |
242 |
|
243 |
=head2 contactname |
244 |
|
245 |
data_type: 'mediumtext' |
246 |
is_nullable: 1 |
247 |
|
248 |
=head2 contactfirstname |
249 |
|
250 |
data_type: 'text' |
251 |
is_nullable: 1 |
252 |
|
253 |
=head2 contacttitle |
254 |
|
255 |
data_type: 'text' |
256 |
is_nullable: 1 |
257 |
|
258 |
=head2 guarantorid |
259 |
|
260 |
data_type: 'integer' |
261 |
is_nullable: 1 |
262 |
|
263 |
=head2 borrowernotes |
264 |
|
265 |
data_type: 'mediumtext' |
266 |
is_nullable: 1 |
267 |
|
268 |
=head2 relationship |
269 |
|
270 |
data_type: 'varchar' |
271 |
is_nullable: 1 |
272 |
size: 100 |
273 |
|
274 |
=head2 ethnicity |
275 |
|
276 |
data_type: 'varchar' |
277 |
is_nullable: 1 |
278 |
size: 50 |
279 |
|
280 |
=head2 ethnotes |
281 |
|
282 |
data_type: 'varchar' |
283 |
is_nullable: 1 |
284 |
size: 255 |
285 |
|
286 |
=head2 sex |
287 |
|
288 |
data_type: 'varchar' |
289 |
is_nullable: 1 |
290 |
size: 1 |
291 |
|
292 |
=head2 password |
293 |
|
294 |
data_type: 'varchar' |
295 |
is_nullable: 1 |
296 |
size: 30 |
297 |
|
298 |
=head2 flags |
299 |
|
300 |
data_type: 'integer' |
301 |
is_nullable: 1 |
302 |
|
303 |
=head2 userid |
304 |
|
305 |
data_type: 'varchar' |
306 |
is_nullable: 1 |
307 |
size: 75 |
308 |
|
309 |
=head2 opacnote |
310 |
|
311 |
data_type: 'mediumtext' |
312 |
is_nullable: 1 |
313 |
|
314 |
=head2 contactnote |
315 |
|
316 |
data_type: 'varchar' |
317 |
is_nullable: 1 |
318 |
size: 255 |
319 |
|
320 |
=head2 sort1 |
321 |
|
322 |
data_type: 'varchar' |
323 |
is_nullable: 1 |
324 |
size: 80 |
325 |
|
326 |
=head2 sort2 |
327 |
|
328 |
data_type: 'varchar' |
329 |
is_nullable: 1 |
330 |
size: 80 |
331 |
|
332 |
=head2 altcontactfirstname |
333 |
|
334 |
data_type: 'varchar' |
335 |
is_nullable: 1 |
336 |
size: 255 |
337 |
|
338 |
=head2 altcontactsurname |
339 |
|
340 |
data_type: 'varchar' |
341 |
is_nullable: 1 |
342 |
size: 255 |
343 |
|
344 |
=head2 altcontactaddress1 |
345 |
|
346 |
data_type: 'varchar' |
347 |
is_nullable: 1 |
348 |
size: 255 |
349 |
|
350 |
=head2 altcontactaddress2 |
351 |
|
352 |
data_type: 'varchar' |
353 |
is_nullable: 1 |
354 |
size: 255 |
355 |
|
356 |
=head2 altcontactaddress3 |
357 |
|
358 |
data_type: 'varchar' |
359 |
is_nullable: 1 |
360 |
size: 255 |
361 |
|
362 |
=head2 altcontactstate |
363 |
|
364 |
data_type: 'text' |
365 |
is_nullable: 1 |
366 |
|
367 |
=head2 altcontactzipcode |
368 |
|
369 |
data_type: 'varchar' |
370 |
is_nullable: 1 |
371 |
size: 50 |
372 |
|
373 |
=head2 altcontactcountry |
374 |
|
375 |
data_type: 'text' |
376 |
is_nullable: 1 |
377 |
|
378 |
=head2 altcontactphone |
379 |
|
380 |
data_type: 'varchar' |
381 |
is_nullable: 1 |
382 |
size: 50 |
383 |
|
384 |
=head2 smsalertnumber |
385 |
|
386 |
data_type: 'varchar' |
387 |
is_nullable: 1 |
388 |
size: 50 |
389 |
|
390 |
=head2 privacy |
391 |
|
392 |
data_type: 'integer' |
393 |
default_value: 1 |
394 |
is_nullable: 0 |
395 |
|
396 |
=cut |
397 |
|
398 |
__PACKAGE__->add_columns( |
399 |
"borrowernumber", |
400 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
401 |
"cardnumber", |
402 |
{ data_type => "varchar", is_nullable => 0, size => 16 }, |
403 |
"surname", |
404 |
{ data_type => "mediumtext", is_nullable => 0 }, |
405 |
"firstname", |
406 |
{ data_type => "text", is_nullable => 1 }, |
407 |
"title", |
408 |
{ data_type => "mediumtext", is_nullable => 1 }, |
409 |
"othernames", |
410 |
{ data_type => "mediumtext", is_nullable => 1 }, |
411 |
"initials", |
412 |
{ data_type => "text", is_nullable => 1 }, |
413 |
"streetnumber", |
414 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
415 |
"streettype", |
416 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
417 |
"address", |
418 |
{ data_type => "mediumtext", is_nullable => 0 }, |
419 |
"address2", |
420 |
{ data_type => "text", is_nullable => 1 }, |
421 |
"city", |
422 |
{ data_type => "mediumtext", is_nullable => 0 }, |
423 |
"state", |
424 |
{ data_type => "text", is_nullable => 1 }, |
425 |
"zipcode", |
426 |
{ data_type => "varchar", is_nullable => 1, size => 25 }, |
427 |
"country", |
428 |
{ data_type => "text", is_nullable => 1 }, |
429 |
"email", |
430 |
{ data_type => "mediumtext", is_nullable => 1 }, |
431 |
"phone", |
432 |
{ data_type => "text", is_nullable => 1 }, |
433 |
"mobile", |
434 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
435 |
"fax", |
436 |
{ data_type => "mediumtext", is_nullable => 1 }, |
437 |
"emailpro", |
438 |
{ data_type => "text", is_nullable => 1 }, |
439 |
"phonepro", |
440 |
{ data_type => "text", is_nullable => 1 }, |
441 |
"b_streetnumber", |
442 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
443 |
"b_streettype", |
444 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
445 |
"b_address", |
446 |
{ data_type => "varchar", is_nullable => 1, size => 100 }, |
447 |
"b_address2", |
448 |
{ data_type => "text", is_nullable => 1 }, |
449 |
"b_city", |
450 |
{ data_type => "mediumtext", is_nullable => 1 }, |
451 |
"b_state", |
452 |
{ data_type => "text", is_nullable => 1 }, |
453 |
"b_zipcode", |
454 |
{ data_type => "varchar", is_nullable => 1, size => 25 }, |
455 |
"b_country", |
456 |
{ data_type => "text", is_nullable => 1 }, |
457 |
"b_email", |
458 |
{ data_type => "text", is_nullable => 1 }, |
459 |
"b_phone", |
460 |
{ data_type => "mediumtext", is_nullable => 1 }, |
461 |
"dateofbirth", |
462 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
463 |
"branchcode", |
464 |
{ |
465 |
data_type => "varchar", |
466 |
default_value => "", |
467 |
is_foreign_key => 1, |
468 |
is_nullable => 0, |
469 |
size => 10, |
470 |
}, |
471 |
"categorycode", |
472 |
{ |
473 |
data_type => "varchar", |
474 |
default_value => "", |
475 |
is_foreign_key => 1, |
476 |
is_nullable => 0, |
477 |
size => 10, |
478 |
}, |
479 |
"dateenrolled", |
480 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
481 |
"dateexpiry", |
482 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
483 |
"gonenoaddress", |
484 |
{ data_type => "tinyint", is_nullable => 1 }, |
485 |
"lost", |
486 |
{ data_type => "tinyint", is_nullable => 1 }, |
487 |
"debarred", |
488 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
489 |
"debarredcomment", |
490 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
491 |
"contactname", |
492 |
{ data_type => "mediumtext", is_nullable => 1 }, |
493 |
"contactfirstname", |
494 |
{ data_type => "text", is_nullable => 1 }, |
495 |
"contacttitle", |
496 |
{ data_type => "text", is_nullable => 1 }, |
497 |
"guarantorid", |
498 |
{ data_type => "integer", is_nullable => 1 }, |
499 |
"borrowernotes", |
500 |
{ data_type => "mediumtext", is_nullable => 1 }, |
501 |
"relationship", |
502 |
{ data_type => "varchar", is_nullable => 1, size => 100 }, |
503 |
"ethnicity", |
504 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
505 |
"ethnotes", |
506 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
507 |
"sex", |
508 |
{ data_type => "varchar", is_nullable => 1, size => 1 }, |
509 |
"password", |
510 |
{ data_type => "varchar", is_nullable => 1, size => 30 }, |
511 |
"flags", |
512 |
{ data_type => "integer", is_nullable => 1 }, |
513 |
"userid", |
514 |
{ data_type => "varchar", is_nullable => 1, size => 75 }, |
515 |
"opacnote", |
516 |
{ data_type => "mediumtext", is_nullable => 1 }, |
517 |
"contactnote", |
518 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
519 |
"sort1", |
520 |
{ data_type => "varchar", is_nullable => 1, size => 80 }, |
521 |
"sort2", |
522 |
{ data_type => "varchar", is_nullable => 1, size => 80 }, |
523 |
"altcontactfirstname", |
524 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
525 |
"altcontactsurname", |
526 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
527 |
"altcontactaddress1", |
528 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
529 |
"altcontactaddress2", |
530 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
531 |
"altcontactaddress3", |
532 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
533 |
"altcontactstate", |
534 |
{ data_type => "text", is_nullable => 1 }, |
535 |
"altcontactzipcode", |
536 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
537 |
"altcontactcountry", |
538 |
{ data_type => "text", is_nullable => 1 }, |
539 |
"altcontactphone", |
540 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
541 |
"smsalertnumber", |
542 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
543 |
"privacy", |
544 |
{ data_type => "integer", default_value => 1, is_nullable => 0 }, |
545 |
); |
546 |
__PACKAGE__->set_primary_key("borrowernumber"); |
547 |
__PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]); |
548 |
|
549 |
=head1 RELATIONS |
550 |
|
551 |
=head2 accountlines |
552 |
|
553 |
Type: has_many |
554 |
|
555 |
Related object: L<Koha::Schema::Result::Accountline> |
556 |
|
557 |
=cut |
558 |
|
559 |
__PACKAGE__->has_many( |
560 |
"accountlines", |
561 |
"Koha::Schema::Result::Accountline", |
562 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
563 |
{ cascade_copy => 0, cascade_delete => 0 }, |
564 |
); |
565 |
|
566 |
=head2 accountoffsets |
567 |
|
568 |
Type: has_many |
569 |
|
570 |
Related object: L<Koha::Schema::Result::Accountoffset> |
571 |
|
572 |
=cut |
573 |
|
574 |
__PACKAGE__->has_many( |
575 |
"accountoffsets", |
576 |
"Koha::Schema::Result::Accountoffset", |
577 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
578 |
{ cascade_copy => 0, cascade_delete => 0 }, |
579 |
); |
580 |
|
581 |
=head2 borrower_attributes |
582 |
|
583 |
Type: has_many |
584 |
|
585 |
Related object: L<Koha::Schema::Result::BorrowerAttribute> |
586 |
|
587 |
=cut |
588 |
|
589 |
__PACKAGE__->has_many( |
590 |
"borrower_attributes", |
591 |
"Koha::Schema::Result::BorrowerAttribute", |
592 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
593 |
{ cascade_copy => 0, cascade_delete => 0 }, |
594 |
); |
595 |
|
596 |
=head2 borrower_message_preferences |
597 |
|
598 |
Type: has_many |
599 |
|
600 |
Related object: L<Koha::Schema::Result::BorrowerMessagePreference> |
601 |
|
602 |
=cut |
603 |
|
604 |
__PACKAGE__->has_many( |
605 |
"borrower_message_preferences", |
606 |
"Koha::Schema::Result::BorrowerMessagePreference", |
607 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
608 |
{ cascade_copy => 0, cascade_delete => 0 }, |
609 |
); |
610 |
|
611 |
=head2 categorycode |
612 |
|
613 |
Type: belongs_to |
614 |
|
615 |
Related object: L<Koha::Schema::Result::Category> |
616 |
|
617 |
=cut |
618 |
|
619 |
__PACKAGE__->belongs_to( |
620 |
"categorycode", |
621 |
"Koha::Schema::Result::Category", |
622 |
{ categorycode => "categorycode" }, |
623 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
624 |
); |
625 |
|
626 |
=head2 branchcode |
627 |
|
628 |
Type: belongs_to |
629 |
|
630 |
Related object: L<Koha::Schema::Result::Branch> |
631 |
|
632 |
=cut |
633 |
|
634 |
__PACKAGE__->belongs_to( |
635 |
"branchcode", |
636 |
"Koha::Schema::Result::Branch", |
637 |
{ branchcode => "branchcode" }, |
638 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
639 |
); |
640 |
|
641 |
=head2 creator_batches |
642 |
|
643 |
Type: has_many |
644 |
|
645 |
Related object: L<Koha::Schema::Result::CreatorBatch> |
646 |
|
647 |
=cut |
648 |
|
649 |
__PACKAGE__->has_many( |
650 |
"creator_batches", |
651 |
"Koha::Schema::Result::CreatorBatch", |
652 |
{ "foreign.borrower_number" => "self.borrowernumber" }, |
653 |
{ cascade_copy => 0, cascade_delete => 0 }, |
654 |
); |
655 |
|
656 |
=head2 hold_fill_targets |
657 |
|
658 |
Type: has_many |
659 |
|
660 |
Related object: L<Koha::Schema::Result::HoldFillTarget> |
661 |
|
662 |
=cut |
663 |
|
664 |
__PACKAGE__->has_many( |
665 |
"hold_fill_targets", |
666 |
"Koha::Schema::Result::HoldFillTarget", |
667 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
668 |
{ cascade_copy => 0, cascade_delete => 0 }, |
669 |
); |
670 |
|
671 |
=head2 issues |
672 |
|
673 |
Type: has_many |
674 |
|
675 |
Related object: L<Koha::Schema::Result::Issue> |
676 |
|
677 |
=cut |
678 |
|
679 |
__PACKAGE__->has_many( |
680 |
"issues", |
681 |
"Koha::Schema::Result::Issue", |
682 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
683 |
{ cascade_copy => 0, cascade_delete => 0 }, |
684 |
); |
685 |
|
686 |
=head2 message_queues |
687 |
|
688 |
Type: has_many |
689 |
|
690 |
Related object: L<Koha::Schema::Result::MessageQueue> |
691 |
|
692 |
=cut |
693 |
|
694 |
__PACKAGE__->has_many( |
695 |
"message_queues", |
696 |
"Koha::Schema::Result::MessageQueue", |
697 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
698 |
{ cascade_copy => 0, cascade_delete => 0 }, |
699 |
); |
700 |
|
701 |
=head2 old_issues |
702 |
|
703 |
Type: has_many |
704 |
|
705 |
Related object: L<Koha::Schema::Result::OldIssue> |
706 |
|
707 |
=cut |
708 |
|
709 |
__PACKAGE__->has_many( |
710 |
"old_issues", |
711 |
"Koha::Schema::Result::OldIssue", |
712 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
713 |
{ cascade_copy => 0, cascade_delete => 0 }, |
714 |
); |
715 |
|
716 |
=head2 old_reserves |
717 |
|
718 |
Type: has_many |
719 |
|
720 |
Related object: L<Koha::Schema::Result::OldReserve> |
721 |
|
722 |
=cut |
723 |
|
724 |
__PACKAGE__->has_many( |
725 |
"old_reserves", |
726 |
"Koha::Schema::Result::OldReserve", |
727 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
728 |
{ cascade_copy => 0, cascade_delete => 0 }, |
729 |
); |
730 |
|
731 |
=head2 patroncards |
732 |
|
733 |
Type: has_many |
734 |
|
735 |
Related object: L<Koha::Schema::Result::Patroncard> |
736 |
|
737 |
=cut |
738 |
|
739 |
__PACKAGE__->has_many( |
740 |
"patroncards", |
741 |
"Koha::Schema::Result::Patroncard", |
742 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
743 |
{ cascade_copy => 0, cascade_delete => 0 }, |
744 |
); |
745 |
|
746 |
=head2 patronimage |
747 |
|
748 |
Type: might_have |
749 |
|
750 |
Related object: L<Koha::Schema::Result::Patronimage> |
751 |
|
752 |
=cut |
753 |
|
754 |
__PACKAGE__->might_have( |
755 |
"patronimage", |
756 |
"Koha::Schema::Result::Patronimage", |
757 |
{ "foreign.cardnumber" => "self.cardnumber" }, |
758 |
{ cascade_copy => 0, cascade_delete => 0 }, |
759 |
); |
760 |
|
761 |
=head2 ratings |
762 |
|
763 |
Type: has_many |
764 |
|
765 |
Related object: L<Koha::Schema::Result::Rating> |
766 |
|
767 |
=cut |
768 |
|
769 |
__PACKAGE__->has_many( |
770 |
"ratings", |
771 |
"Koha::Schema::Result::Rating", |
772 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
773 |
{ cascade_copy => 0, cascade_delete => 0 }, |
774 |
); |
775 |
|
776 |
=head2 reserves |
777 |
|
778 |
Type: has_many |
779 |
|
780 |
Related object: L<Koha::Schema::Result::Reserve> |
781 |
|
782 |
=cut |
783 |
|
784 |
__PACKAGE__->has_many( |
785 |
"reserves", |
786 |
"Koha::Schema::Result::Reserve", |
787 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
788 |
{ cascade_copy => 0, cascade_delete => 0 }, |
789 |
); |
790 |
|
791 |
=head2 reviews |
792 |
|
793 |
Type: has_many |
794 |
|
795 |
Related object: L<Koha::Schema::Result::Review> |
796 |
|
797 |
=cut |
798 |
|
799 |
__PACKAGE__->has_many( |
800 |
"reviews", |
801 |
"Koha::Schema::Result::Review", |
802 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
803 |
{ cascade_copy => 0, cascade_delete => 0 }, |
804 |
); |
805 |
|
806 |
=head2 subscriptionroutinglists |
807 |
|
808 |
Type: has_many |
809 |
|
810 |
Related object: L<Koha::Schema::Result::Subscriptionroutinglist> |
811 |
|
812 |
=cut |
813 |
|
814 |
__PACKAGE__->has_many( |
815 |
"subscriptionroutinglists", |
816 |
"Koha::Schema::Result::Subscriptionroutinglist", |
817 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
818 |
{ cascade_copy => 0, cascade_delete => 0 }, |
819 |
); |
820 |
|
821 |
=head2 tags_all |
822 |
|
823 |
Type: has_many |
824 |
|
825 |
Related object: L<Koha::Schema::Result::TagAll> |
826 |
|
827 |
=cut |
828 |
|
829 |
__PACKAGE__->has_many( |
830 |
"tags_all", |
831 |
"Koha::Schema::Result::TagAll", |
832 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
833 |
{ cascade_copy => 0, cascade_delete => 0 }, |
834 |
); |
835 |
|
836 |
=head2 tags_approvals |
837 |
|
838 |
Type: has_many |
839 |
|
840 |
Related object: L<Koha::Schema::Result::TagsApproval> |
841 |
|
842 |
=cut |
843 |
|
844 |
__PACKAGE__->has_many( |
845 |
"tags_approvals", |
846 |
"Koha::Schema::Result::TagsApproval", |
847 |
{ "foreign.approved_by" => "self.borrowernumber" }, |
848 |
{ cascade_copy => 0, cascade_delete => 0 }, |
849 |
); |
850 |
|
851 |
=head2 user_permissions |
852 |
|
853 |
Type: has_many |
854 |
|
855 |
Related object: L<Koha::Schema::Result::UserPermission> |
856 |
|
857 |
=cut |
858 |
|
859 |
__PACKAGE__->has_many( |
860 |
"user_permissions", |
861 |
"Koha::Schema::Result::UserPermission", |
862 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
863 |
{ cascade_copy => 0, cascade_delete => 0 }, |
864 |
); |
865 |
|
866 |
=head2 virtualshelfcontents |
867 |
|
868 |
Type: has_many |
869 |
|
870 |
Related object: L<Koha::Schema::Result::Virtualshelfcontent> |
871 |
|
872 |
=cut |
873 |
|
874 |
__PACKAGE__->has_many( |
875 |
"virtualshelfcontents", |
876 |
"Koha::Schema::Result::Virtualshelfcontent", |
877 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
878 |
{ cascade_copy => 0, cascade_delete => 0 }, |
879 |
); |
880 |
|
881 |
=head2 virtualshelfshares |
882 |
|
883 |
Type: has_many |
884 |
|
885 |
Related object: L<Koha::Schema::Result::Virtualshelfshare> |
886 |
|
887 |
=cut |
888 |
|
889 |
__PACKAGE__->has_many( |
890 |
"virtualshelfshares", |
891 |
"Koha::Schema::Result::Virtualshelfshare", |
892 |
{ "foreign.borrowernumber" => "self.borrowernumber" }, |
893 |
{ cascade_copy => 0, cascade_delete => 0 }, |
894 |
); |
895 |
|
896 |
=head2 virtualshelves |
897 |
|
898 |
Type: has_many |
899 |
|
900 |
Related object: L<Koha::Schema::Result::Virtualshelve> |
901 |
|
902 |
=cut |
903 |
|
904 |
__PACKAGE__->has_many( |
905 |
"virtualshelves", |
906 |
"Koha::Schema::Result::Virtualshelve", |
907 |
{ "foreign.owner" => "self.borrowernumber" }, |
908 |
{ cascade_copy => 0, cascade_delete => 0 }, |
909 |
); |
910 |
|
911 |
|
912 |
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2012-06-11 09:37:40 |
913 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PnpGsgSH2Urh7W8mw0rmbg |
914 |
|
915 |
|
916 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
917 |
1; |