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