Bug 15478 - Checksum mismatch when regenerating schema
[koha.git] / Koha / Schema / Result / Borrower.pm
blob97f65d0fc7b5e421e546ed54d54108a70f3c1665
1 use utf8;
2 package Koha::Schema::Result::Borrower;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Borrower
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<borrowers>
20 =cut
22 __PACKAGE__->table("borrowers");
24 =head1 ACCESSORS
26 =head2 borrowernumber
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 cardnumber
34 data_type: 'varchar'
35 is_nullable: 1
36 size: 16
38 =head2 surname
40 data_type: 'mediumtext'
41 is_nullable: 0
43 =head2 firstname
45 data_type: 'text'
46 is_nullable: 1
48 =head2 title
50 data_type: 'mediumtext'
51 is_nullable: 1
53 =head2 othernames
55 data_type: 'mediumtext'
56 is_nullable: 1
58 =head2 initials
60 data_type: 'text'
61 is_nullable: 1
63 =head2 streetnumber
65 data_type: 'varchar'
66 is_nullable: 1
67 size: 10
69 =head2 streettype
71 data_type: 'varchar'
72 is_nullable: 1
73 size: 50
75 =head2 address
77 data_type: 'mediumtext'
78 is_nullable: 0
80 =head2 address2
82 data_type: 'text'
83 is_nullable: 1
85 =head2 city
87 data_type: 'mediumtext'
88 is_nullable: 0
90 =head2 state
92 data_type: 'text'
93 is_nullable: 1
95 =head2 zipcode
97 data_type: 'varchar'
98 is_nullable: 1
99 size: 25
101 =head2 country
103 data_type: 'text'
104 is_nullable: 1
106 =head2 email
108 data_type: 'mediumtext'
109 is_nullable: 1
111 =head2 phone
113 data_type: 'text'
114 is_nullable: 1
116 =head2 mobile
118 data_type: 'varchar'
119 is_nullable: 1
120 size: 50
122 =head2 fax
124 data_type: 'mediumtext'
125 is_nullable: 1
127 =head2 emailpro
129 data_type: 'text'
130 is_nullable: 1
132 =head2 phonepro
134 data_type: 'text'
135 is_nullable: 1
137 =head2 B_streetnumber
139 accessor: 'b_streetnumber'
140 data_type: 'varchar'
141 is_nullable: 1
142 size: 10
144 =head2 B_streettype
146 accessor: 'b_streettype'
147 data_type: 'varchar'
148 is_nullable: 1
149 size: 50
151 =head2 B_address
153 accessor: 'b_address'
154 data_type: 'varchar'
155 is_nullable: 1
156 size: 100
158 =head2 B_address2
160 accessor: 'b_address2'
161 data_type: 'text'
162 is_nullable: 1
164 =head2 B_city
166 accessor: 'b_city'
167 data_type: 'mediumtext'
168 is_nullable: 1
170 =head2 B_state
172 accessor: 'b_state'
173 data_type: 'text'
174 is_nullable: 1
176 =head2 B_zipcode
178 accessor: 'b_zipcode'
179 data_type: 'varchar'
180 is_nullable: 1
181 size: 25
183 =head2 B_country
185 accessor: 'b_country'
186 data_type: 'text'
187 is_nullable: 1
189 =head2 B_email
191 accessor: 'b_email'
192 data_type: 'text'
193 is_nullable: 1
195 =head2 B_phone
197 accessor: 'b_phone'
198 data_type: 'mediumtext'
199 is_nullable: 1
201 =head2 dateofbirth
203 data_type: 'date'
204 datetime_undef_if_invalid: 1
205 is_nullable: 1
207 =head2 branchcode
209 data_type: 'varchar'
210 default_value: (empty string)
211 is_foreign_key: 1
212 is_nullable: 0
213 size: 10
215 =head2 categorycode
217 data_type: 'varchar'
218 default_value: (empty string)
219 is_foreign_key: 1
220 is_nullable: 0
221 size: 10
223 =head2 dateenrolled
225 data_type: 'date'
226 datetime_undef_if_invalid: 1
227 is_nullable: 1
229 =head2 dateexpiry
231 data_type: 'date'
232 datetime_undef_if_invalid: 1
233 is_nullable: 1
235 =head2 gonenoaddress
237 data_type: 'tinyint'
238 is_nullable: 1
240 =head2 lost
242 data_type: 'tinyint'
243 is_nullable: 1
245 =head2 debarred
247 data_type: 'date'
248 datetime_undef_if_invalid: 1
249 is_nullable: 1
251 =head2 debarredcomment
253 data_type: 'varchar'
254 is_nullable: 1
255 size: 255
257 =head2 contactname
259 data_type: 'mediumtext'
260 is_nullable: 1
262 =head2 contactfirstname
264 data_type: 'text'
265 is_nullable: 1
267 =head2 contacttitle
269 data_type: 'text'
270 is_nullable: 1
272 =head2 guarantorid
274 data_type: 'integer'
275 is_nullable: 1
277 =head2 borrowernotes
279 data_type: 'mediumtext'
280 is_nullable: 1
282 =head2 relationship
284 data_type: 'varchar'
285 is_nullable: 1
286 size: 100
288 =head2 sex
290 data_type: 'varchar'
291 is_nullable: 1
292 size: 1
294 =head2 password
296 data_type: 'varchar'
297 is_nullable: 1
298 size: 60
300 =head2 flags
302 data_type: 'integer'
303 is_nullable: 1
305 =head2 userid
307 data_type: 'varchar'
308 is_nullable: 1
309 size: 75
311 =head2 opacnote
313 data_type: 'mediumtext'
314 is_nullable: 1
316 =head2 contactnote
318 data_type: 'varchar'
319 is_nullable: 1
320 size: 255
322 =head2 sort1
324 data_type: 'varchar'
325 is_nullable: 1
326 size: 80
328 =head2 sort2
330 data_type: 'varchar'
331 is_nullable: 1
332 size: 80
334 =head2 altcontactfirstname
336 data_type: 'varchar'
337 is_nullable: 1
338 size: 255
340 =head2 altcontactsurname
342 data_type: 'varchar'
343 is_nullable: 1
344 size: 255
346 =head2 altcontactaddress1
348 data_type: 'varchar'
349 is_nullable: 1
350 size: 255
352 =head2 altcontactaddress2
354 data_type: 'varchar'
355 is_nullable: 1
356 size: 255
358 =head2 altcontactaddress3
360 data_type: 'varchar'
361 is_nullable: 1
362 size: 255
364 =head2 altcontactstate
366 data_type: 'text'
367 is_nullable: 1
369 =head2 altcontactzipcode
371 data_type: 'varchar'
372 is_nullable: 1
373 size: 50
375 =head2 altcontactcountry
377 data_type: 'text'
378 is_nullable: 1
380 =head2 altcontactphone
382 data_type: 'varchar'
383 is_nullable: 1
384 size: 50
386 =head2 smsalertnumber
388 data_type: 'varchar'
389 is_nullable: 1
390 size: 50
392 =head2 privacy
394 data_type: 'integer'
395 default_value: 1
396 is_nullable: 0
398 =head2 privacy_guarantor_checkouts
400 data_type: 'tinyint'
401 default_value: 0
402 is_nullable: 0
404 =cut
406 __PACKAGE__->add_columns(
407 "borrowernumber",
408 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
409 "cardnumber",
410 { data_type => "varchar", is_nullable => 1, size => 16 },
411 "surname",
412 { data_type => "mediumtext", is_nullable => 0 },
413 "firstname",
414 { data_type => "text", is_nullable => 1 },
415 "title",
416 { data_type => "mediumtext", is_nullable => 1 },
417 "othernames",
418 { data_type => "mediumtext", is_nullable => 1 },
419 "initials",
420 { data_type => "text", is_nullable => 1 },
421 "streetnumber",
422 { data_type => "varchar", is_nullable => 1, size => 10 },
423 "streettype",
424 { data_type => "varchar", is_nullable => 1, size => 50 },
425 "address",
426 { data_type => "mediumtext", is_nullable => 0 },
427 "address2",
428 { data_type => "text", is_nullable => 1 },
429 "city",
430 { data_type => "mediumtext", is_nullable => 0 },
431 "state",
432 { data_type => "text", is_nullable => 1 },
433 "zipcode",
434 { data_type => "varchar", is_nullable => 1, size => 25 },
435 "country",
436 { data_type => "text", is_nullable => 1 },
437 "email",
438 { data_type => "mediumtext", is_nullable => 1 },
439 "phone",
440 { data_type => "text", is_nullable => 1 },
441 "mobile",
442 { data_type => "varchar", is_nullable => 1, size => 50 },
443 "fax",
444 { data_type => "mediumtext", is_nullable => 1 },
445 "emailpro",
446 { data_type => "text", is_nullable => 1 },
447 "phonepro",
448 { data_type => "text", is_nullable => 1 },
449 "B_streetnumber",
451 accessor => "b_streetnumber",
452 data_type => "varchar",
453 is_nullable => 1,
454 size => 10,
456 "B_streettype",
458 accessor => "b_streettype",
459 data_type => "varchar",
460 is_nullable => 1,
461 size => 50,
463 "B_address",
465 accessor => "b_address",
466 data_type => "varchar",
467 is_nullable => 1,
468 size => 100,
470 "B_address2",
471 { accessor => "b_address2", data_type => "text", is_nullable => 1 },
472 "B_city",
473 { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
474 "B_state",
475 { accessor => "b_state", data_type => "text", is_nullable => 1 },
476 "B_zipcode",
478 accessor => "b_zipcode",
479 data_type => "varchar",
480 is_nullable => 1,
481 size => 25,
483 "B_country",
484 { accessor => "b_country", data_type => "text", is_nullable => 1 },
485 "B_email",
486 { accessor => "b_email", data_type => "text", is_nullable => 1 },
487 "B_phone",
488 { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
489 "dateofbirth",
490 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
491 "branchcode",
493 data_type => "varchar",
494 default_value => "",
495 is_foreign_key => 1,
496 is_nullable => 0,
497 size => 10,
499 "categorycode",
501 data_type => "varchar",
502 default_value => "",
503 is_foreign_key => 1,
504 is_nullable => 0,
505 size => 10,
507 "dateenrolled",
508 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
509 "dateexpiry",
510 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
511 "gonenoaddress",
512 { data_type => "tinyint", is_nullable => 1 },
513 "lost",
514 { data_type => "tinyint", is_nullable => 1 },
515 "debarred",
516 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
517 "debarredcomment",
518 { data_type => "varchar", is_nullable => 1, size => 255 },
519 "contactname",
520 { data_type => "mediumtext", is_nullable => 1 },
521 "contactfirstname",
522 { data_type => "text", is_nullable => 1 },
523 "contacttitle",
524 { data_type => "text", is_nullable => 1 },
525 "guarantorid",
526 { data_type => "integer", is_nullable => 1 },
527 "borrowernotes",
528 { data_type => "mediumtext", is_nullable => 1 },
529 "relationship",
530 { data_type => "varchar", is_nullable => 1, size => 100 },
531 "sex",
532 { data_type => "varchar", is_nullable => 1, size => 1 },
533 "password",
534 { data_type => "varchar", is_nullable => 1, size => 60 },
535 "flags",
536 { data_type => "integer", is_nullable => 1 },
537 "userid",
538 { data_type => "varchar", is_nullable => 1, size => 75 },
539 "opacnote",
540 { data_type => "mediumtext", is_nullable => 1 },
541 "contactnote",
542 { data_type => "varchar", is_nullable => 1, size => 255 },
543 "sort1",
544 { data_type => "varchar", is_nullable => 1, size => 80 },
545 "sort2",
546 { data_type => "varchar", is_nullable => 1, size => 80 },
547 "altcontactfirstname",
548 { data_type => "varchar", is_nullable => 1, size => 255 },
549 "altcontactsurname",
550 { data_type => "varchar", is_nullable => 1, size => 255 },
551 "altcontactaddress1",
552 { data_type => "varchar", is_nullable => 1, size => 255 },
553 "altcontactaddress2",
554 { data_type => "varchar", is_nullable => 1, size => 255 },
555 "altcontactaddress3",
556 { data_type => "varchar", is_nullable => 1, size => 255 },
557 "altcontactstate",
558 { data_type => "text", is_nullable => 1 },
559 "altcontactzipcode",
560 { data_type => "varchar", is_nullable => 1, size => 50 },
561 "altcontactcountry",
562 { data_type => "text", is_nullable => 1 },
563 "altcontactphone",
564 { data_type => "varchar", is_nullable => 1, size => 50 },
565 "smsalertnumber",
566 { data_type => "varchar", is_nullable => 1, size => 50 },
567 "privacy",
568 { data_type => "integer", default_value => 1, is_nullable => 0 },
569 "privacy_guarantor_checkouts",
570 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
573 =head1 PRIMARY KEY
575 =over 4
577 =item * L</borrowernumber>
579 =back
581 =cut
583 __PACKAGE__->set_primary_key("borrowernumber");
585 =head1 UNIQUE CONSTRAINTS
587 =head2 C<cardnumber>
589 =over 4
591 =item * L</cardnumber>
593 =back
595 =cut
597 __PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
599 =head2 C<userid>
601 =over 4
603 =item * L</userid>
605 =back
607 =cut
609 __PACKAGE__->add_unique_constraint("userid", ["userid"]);
611 =head1 RELATIONS
613 =head2 accountlines
615 Type: has_many
617 Related object: L<Koha::Schema::Result::Accountline>
619 =cut
621 __PACKAGE__->has_many(
622 "accountlines",
623 "Koha::Schema::Result::Accountline",
624 { "foreign.borrowernumber" => "self.borrowernumber" },
625 { cascade_copy => 0, cascade_delete => 0 },
628 =head2 accountoffsets
630 Type: has_many
632 Related object: L<Koha::Schema::Result::Accountoffset>
634 =cut
636 __PACKAGE__->has_many(
637 "accountoffsets",
638 "Koha::Schema::Result::Accountoffset",
639 { "foreign.borrowernumber" => "self.borrowernumber" },
640 { cascade_copy => 0, cascade_delete => 0 },
643 =head2 aqbasketusers
645 Type: has_many
647 Related object: L<Koha::Schema::Result::Aqbasketuser>
649 =cut
651 __PACKAGE__->has_many(
652 "aqbasketusers",
653 "Koha::Schema::Result::Aqbasketuser",
654 { "foreign.borrowernumber" => "self.borrowernumber" },
655 { cascade_copy => 0, cascade_delete => 0 },
658 =head2 aqbudgetborrowers
660 Type: has_many
662 Related object: L<Koha::Schema::Result::Aqbudgetborrower>
664 =cut
666 __PACKAGE__->has_many(
667 "aqbudgetborrowers",
668 "Koha::Schema::Result::Aqbudgetborrower",
669 { "foreign.borrowernumber" => "self.borrowernumber" },
670 { cascade_copy => 0, cascade_delete => 0 },
673 =head2 aqorder_users
675 Type: has_many
677 Related object: L<Koha::Schema::Result::AqorderUser>
679 =cut
681 __PACKAGE__->has_many(
682 "aqorder_users",
683 "Koha::Schema::Result::AqorderUser",
684 { "foreign.borrowernumber" => "self.borrowernumber" },
685 { cascade_copy => 0, cascade_delete => 0 },
688 =head2 borrower_attributes
690 Type: has_many
692 Related object: L<Koha::Schema::Result::BorrowerAttribute>
694 =cut
696 __PACKAGE__->has_many(
697 "borrower_attributes",
698 "Koha::Schema::Result::BorrowerAttribute",
699 { "foreign.borrowernumber" => "self.borrowernumber" },
700 { cascade_copy => 0, cascade_delete => 0 },
703 =head2 borrower_debarments
705 Type: has_many
707 Related object: L<Koha::Schema::Result::BorrowerDebarment>
709 =cut
711 __PACKAGE__->has_many(
712 "borrower_debarments",
713 "Koha::Schema::Result::BorrowerDebarment",
714 { "foreign.borrowernumber" => "self.borrowernumber" },
715 { cascade_copy => 0, cascade_delete => 0 },
718 =head2 borrower_files
720 Type: has_many
722 Related object: L<Koha::Schema::Result::BorrowerFile>
724 =cut
726 __PACKAGE__->has_many(
727 "borrower_files",
728 "Koha::Schema::Result::BorrowerFile",
729 { "foreign.borrowernumber" => "self.borrowernumber" },
730 { cascade_copy => 0, cascade_delete => 0 },
733 =head2 borrower_message_preferences
735 Type: has_many
737 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
739 =cut
741 __PACKAGE__->has_many(
742 "borrower_message_preferences",
743 "Koha::Schema::Result::BorrowerMessagePreference",
744 { "foreign.borrowernumber" => "self.borrowernumber" },
745 { cascade_copy => 0, cascade_delete => 0 },
748 =head2 borrower_syncs
750 Type: has_many
752 Related object: L<Koha::Schema::Result::BorrowerSync>
754 =cut
756 __PACKAGE__->has_many(
757 "borrower_syncs",
758 "Koha::Schema::Result::BorrowerSync",
759 { "foreign.borrowernumber" => "self.borrowernumber" },
760 { cascade_copy => 0, cascade_delete => 0 },
763 =head2 branchcode
765 Type: belongs_to
767 Related object: L<Koha::Schema::Result::Branch>
769 =cut
771 __PACKAGE__->belongs_to(
772 "branchcode",
773 "Koha::Schema::Result::Branch",
774 { branchcode => "branchcode" },
775 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
778 =head2 categorycode
780 Type: belongs_to
782 Related object: L<Koha::Schema::Result::Category>
784 =cut
786 __PACKAGE__->belongs_to(
787 "categorycode",
788 "Koha::Schema::Result::Category",
789 { categorycode => "categorycode" },
790 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
793 =head2 course_instructors
795 Type: has_many
797 Related object: L<Koha::Schema::Result::CourseInstructor>
799 =cut
801 __PACKAGE__->has_many(
802 "course_instructors",
803 "Koha::Schema::Result::CourseInstructor",
804 { "foreign.borrowernumber" => "self.borrowernumber" },
805 { cascade_copy => 0, cascade_delete => 0 },
808 =head2 creator_batches
810 Type: has_many
812 Related object: L<Koha::Schema::Result::CreatorBatch>
814 =cut
816 __PACKAGE__->has_many(
817 "creator_batches",
818 "Koha::Schema::Result::CreatorBatch",
819 { "foreign.borrower_number" => "self.borrowernumber" },
820 { cascade_copy => 0, cascade_delete => 0 },
823 =head2 discharges
825 Type: has_many
827 Related object: L<Koha::Schema::Result::Discharge>
829 =cut
831 __PACKAGE__->has_many(
832 "discharges",
833 "Koha::Schema::Result::Discharge",
834 { "foreign.borrower" => "self.borrowernumber" },
835 { cascade_copy => 0, cascade_delete => 0 },
838 =head2 hold_fill_targets
840 Type: has_many
842 Related object: L<Koha::Schema::Result::HoldFillTarget>
844 =cut
846 __PACKAGE__->has_many(
847 "hold_fill_targets",
848 "Koha::Schema::Result::HoldFillTarget",
849 { "foreign.borrowernumber" => "self.borrowernumber" },
850 { cascade_copy => 0, cascade_delete => 0 },
853 =head2 issues
855 Type: has_many
857 Related object: L<Koha::Schema::Result::Issue>
859 =cut
861 __PACKAGE__->has_many(
862 "issues",
863 "Koha::Schema::Result::Issue",
864 { "foreign.borrowernumber" => "self.borrowernumber" },
865 { cascade_copy => 0, cascade_delete => 0 },
868 =head2 items_last_borrowers
870 Type: has_many
872 Related object: L<Koha::Schema::Result::ItemsLastBorrower>
874 =cut
876 __PACKAGE__->has_many(
877 "items_last_borrowers",
878 "Koha::Schema::Result::ItemsLastBorrower",
879 { "foreign.borrowernumber" => "self.borrowernumber" },
880 { cascade_copy => 0, cascade_delete => 0 },
883 =head2 message_queues
885 Type: has_many
887 Related object: L<Koha::Schema::Result::MessageQueue>
889 =cut
891 __PACKAGE__->has_many(
892 "message_queues",
893 "Koha::Schema::Result::MessageQueue",
894 { "foreign.borrowernumber" => "self.borrowernumber" },
895 { cascade_copy => 0, cascade_delete => 0 },
898 =head2 old_issues
900 Type: has_many
902 Related object: L<Koha::Schema::Result::OldIssue>
904 =cut
906 __PACKAGE__->has_many(
907 "old_issues",
908 "Koha::Schema::Result::OldIssue",
909 { "foreign.borrowernumber" => "self.borrowernumber" },
910 { cascade_copy => 0, cascade_delete => 0 },
913 =head2 old_reserves
915 Type: has_many
917 Related object: L<Koha::Schema::Result::OldReserve>
919 =cut
921 __PACKAGE__->has_many(
922 "old_reserves",
923 "Koha::Schema::Result::OldReserve",
924 { "foreign.borrowernumber" => "self.borrowernumber" },
925 { cascade_copy => 0, cascade_delete => 0 },
928 =head2 opac_news
930 Type: has_many
932 Related object: L<Koha::Schema::Result::OpacNews>
934 =cut
936 __PACKAGE__->has_many(
937 "opac_news",
938 "Koha::Schema::Result::OpacNews",
939 { "foreign.borrowernumber" => "self.borrowernumber" },
940 { cascade_copy => 0, cascade_delete => 0 },
943 =head2 patron_list_patrons
945 Type: has_many
947 Related object: L<Koha::Schema::Result::PatronListPatron>
949 =cut
951 __PACKAGE__->has_many(
952 "patron_list_patrons",
953 "Koha::Schema::Result::PatronListPatron",
954 { "foreign.borrowernumber" => "self.borrowernumber" },
955 { cascade_copy => 0, cascade_delete => 0 },
958 =head2 patron_lists
960 Type: has_many
962 Related object: L<Koha::Schema::Result::PatronList>
964 =cut
966 __PACKAGE__->has_many(
967 "patron_lists",
968 "Koha::Schema::Result::PatronList",
969 { "foreign.owner" => "self.borrowernumber" },
970 { cascade_copy => 0, cascade_delete => 0 },
973 =head2 patronimage
975 Type: might_have
977 Related object: L<Koha::Schema::Result::Patronimage>
979 =cut
981 __PACKAGE__->might_have(
982 "patronimage",
983 "Koha::Schema::Result::Patronimage",
984 { "foreign.borrowernumber" => "self.borrowernumber" },
985 { cascade_copy => 0, cascade_delete => 0 },
988 =head2 ratings
990 Type: has_many
992 Related object: L<Koha::Schema::Result::Rating>
994 =cut
996 __PACKAGE__->has_many(
997 "ratings",
998 "Koha::Schema::Result::Rating",
999 { "foreign.borrowernumber" => "self.borrowernumber" },
1000 { cascade_copy => 0, cascade_delete => 0 },
1003 =head2 reserves
1005 Type: has_many
1007 Related object: L<Koha::Schema::Result::Reserve>
1009 =cut
1011 __PACKAGE__->has_many(
1012 "reserves",
1013 "Koha::Schema::Result::Reserve",
1014 { "foreign.borrowernumber" => "self.borrowernumber" },
1015 { cascade_copy => 0, cascade_delete => 0 },
1018 =head2 reviews
1020 Type: has_many
1022 Related object: L<Koha::Schema::Result::Review>
1024 =cut
1026 __PACKAGE__->has_many(
1027 "reviews",
1028 "Koha::Schema::Result::Review",
1029 { "foreign.borrowernumber" => "self.borrowernumber" },
1030 { cascade_copy => 0, cascade_delete => 0 },
1033 =head2 subscriptionroutinglists
1035 Type: has_many
1037 Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
1039 =cut
1041 __PACKAGE__->has_many(
1042 "subscriptionroutinglists",
1043 "Koha::Schema::Result::Subscriptionroutinglist",
1044 { "foreign.borrowernumber" => "self.borrowernumber" },
1045 { cascade_copy => 0, cascade_delete => 0 },
1048 =head2 tags_all
1050 Type: has_many
1052 Related object: L<Koha::Schema::Result::TagAll>
1054 =cut
1056 __PACKAGE__->has_many(
1057 "tags_all",
1058 "Koha::Schema::Result::TagAll",
1059 { "foreign.borrowernumber" => "self.borrowernumber" },
1060 { cascade_copy => 0, cascade_delete => 0 },
1063 =head2 tags_approvals
1065 Type: has_many
1067 Related object: L<Koha::Schema::Result::TagsApproval>
1069 =cut
1071 __PACKAGE__->has_many(
1072 "tags_approvals",
1073 "Koha::Schema::Result::TagsApproval",
1074 { "foreign.approved_by" => "self.borrowernumber" },
1075 { cascade_copy => 0, cascade_delete => 0 },
1078 =head2 user_permissions
1080 Type: has_many
1082 Related object: L<Koha::Schema::Result::UserPermission>
1084 =cut
1086 __PACKAGE__->has_many(
1087 "user_permissions",
1088 "Koha::Schema::Result::UserPermission",
1089 { "foreign.borrowernumber" => "self.borrowernumber" },
1090 { cascade_copy => 0, cascade_delete => 0 },
1093 =head2 virtualshelfcontents
1095 Type: has_many
1097 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
1099 =cut
1101 __PACKAGE__->has_many(
1102 "virtualshelfcontents",
1103 "Koha::Schema::Result::Virtualshelfcontent",
1104 { "foreign.borrowernumber" => "self.borrowernumber" },
1105 { cascade_copy => 0, cascade_delete => 0 },
1108 =head2 virtualshelfshares
1110 Type: has_many
1112 Related object: L<Koha::Schema::Result::Virtualshelfshare>
1114 =cut
1116 __PACKAGE__->has_many(
1117 "virtualshelfshares",
1118 "Koha::Schema::Result::Virtualshelfshare",
1119 { "foreign.borrowernumber" => "self.borrowernumber" },
1120 { cascade_copy => 0, cascade_delete => 0 },
1123 =head2 virtualshelves
1125 Type: has_many
1127 Related object: L<Koha::Schema::Result::Virtualshelve>
1129 =cut
1131 __PACKAGE__->has_many(
1132 "virtualshelves",
1133 "Koha::Schema::Result::Virtualshelve",
1134 { "foreign.owner" => "self.borrowernumber" },
1135 { cascade_copy => 0, cascade_delete => 0 },
1138 =head2 basketnoes
1140 Type: many_to_many
1142 Composing rels: L</aqbasketusers> -> basketno
1144 =cut
1146 __PACKAGE__->many_to_many("basketnoes", "aqbasketusers", "basketno");
1148 =head2 budgets
1150 Type: many_to_many
1152 Composing rels: L</aqbudgetborrowers> -> budget
1154 =cut
1156 __PACKAGE__->many_to_many("budgets", "aqbudgetborrowers", "budget");
1158 =head2 courses
1160 Type: many_to_many
1162 Composing rels: L</course_instructors> -> course
1164 =cut
1166 __PACKAGE__->many_to_many("courses", "course_instructors", "course");
1168 =head2 ordernumbers
1170 Type: many_to_many
1172 Composing rels: L</aqorder_users> -> ordernumber
1174 =cut
1176 __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1179 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 11:59:52
1180 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0nIBbkzhb+Yfp6qpSLo51A
1182 __PACKAGE__->belongs_to(
1183 "guarantor",
1184 "Koha::Schema::Result::Borrower",
1185 { borrowernumber => "guarantorid" },