04b7c8de7a314d6479a237c74171630b03799e39
[koha.git] / Koha / Schema / Result / Borrower.pm
1 use utf8;
2 package Koha::Schema::Result::Borrower;
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::Borrower
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<borrowers>
19
20 =cut
21
22 __PACKAGE__->table("borrowers");
23
24 =head1 ACCESSORS
25
26 =head2 borrowernumber
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 cardnumber
33
34   data_type: 'varchar'
35   is_nullable: 1
36   size: 16
37
38 =head2 surname
39
40   data_type: 'mediumtext'
41   is_nullable: 0
42
43 =head2 firstname
44
45   data_type: 'text'
46   is_nullable: 1
47
48 =head2 title
49
50   data_type: 'mediumtext'
51   is_nullable: 1
52
53 =head2 othernames
54
55   data_type: 'mediumtext'
56   is_nullable: 1
57
58 =head2 initials
59
60   data_type: 'text'
61   is_nullable: 1
62
63 =head2 streetnumber
64
65   data_type: 'varchar'
66   is_nullable: 1
67   size: 10
68
69 =head2 streettype
70
71   data_type: 'varchar'
72   is_nullable: 1
73   size: 50
74
75 =head2 address
76
77   data_type: 'mediumtext'
78   is_nullable: 0
79
80 =head2 address2
81
82   data_type: 'text'
83   is_nullable: 1
84
85 =head2 city
86
87   data_type: 'mediumtext'
88   is_nullable: 0
89
90 =head2 state
91
92   data_type: 'text'
93   is_nullable: 1
94
95 =head2 zipcode
96
97   data_type: 'varchar'
98   is_nullable: 1
99   size: 25
100
101 =head2 country
102
103   data_type: 'text'
104   is_nullable: 1
105
106 =head2 email
107
108   data_type: 'mediumtext'
109   is_nullable: 1
110
111 =head2 phone
112
113   data_type: 'text'
114   is_nullable: 1
115
116 =head2 mobile
117
118   data_type: 'varchar'
119   is_nullable: 1
120   size: 50
121
122 =head2 fax
123
124   data_type: 'mediumtext'
125   is_nullable: 1
126
127 =head2 emailpro
128
129   data_type: 'text'
130   is_nullable: 1
131
132 =head2 phonepro
133
134   data_type: 'text'
135   is_nullable: 1
136
137 =head2 B_streetnumber
138
139   accessor: 'b_streetnumber'
140   data_type: 'varchar'
141   is_nullable: 1
142   size: 10
143
144 =head2 B_streettype
145
146   accessor: 'b_streettype'
147   data_type: 'varchar'
148   is_nullable: 1
149   size: 50
150
151 =head2 B_address
152
153   accessor: 'b_address'
154   data_type: 'varchar'
155   is_nullable: 1
156   size: 100
157
158 =head2 B_address2
159
160   accessor: 'b_address2'
161   data_type: 'text'
162   is_nullable: 1
163
164 =head2 B_city
165
166   accessor: 'b_city'
167   data_type: 'mediumtext'
168   is_nullable: 1
169
170 =head2 B_state
171
172   accessor: 'b_state'
173   data_type: 'text'
174   is_nullable: 1
175
176 =head2 B_zipcode
177
178   accessor: 'b_zipcode'
179   data_type: 'varchar'
180   is_nullable: 1
181   size: 25
182
183 =head2 B_country
184
185   accessor: 'b_country'
186   data_type: 'text'
187   is_nullable: 1
188
189 =head2 B_email
190
191   accessor: 'b_email'
192   data_type: 'text'
193   is_nullable: 1
194
195 =head2 B_phone
196
197   accessor: 'b_phone'
198   data_type: 'mediumtext'
199   is_nullable: 1
200
201 =head2 dateofbirth
202
203   data_type: 'date'
204   datetime_undef_if_invalid: 1
205   is_nullable: 1
206
207 =head2 branchcode
208
209   data_type: 'varchar'
210   default_value: (empty string)
211   is_foreign_key: 1
212   is_nullable: 0
213   size: 10
214
215 =head2 categorycode
216
217   data_type: 'varchar'
218   default_value: (empty string)
219   is_foreign_key: 1
220   is_nullable: 0
221   size: 10
222
223 =head2 dateenrolled
224
225   data_type: 'date'
226   datetime_undef_if_invalid: 1
227   is_nullable: 1
228
229 =head2 dateexpiry
230
231   data_type: 'date'
232   datetime_undef_if_invalid: 1
233   is_nullable: 1
234
235 =head2 gonenoaddress
236
237   data_type: 'tinyint'
238   is_nullable: 1
239
240 =head2 lost
241
242   data_type: 'tinyint'
243   is_nullable: 1
244
245 =head2 debarred
246
247   data_type: 'date'
248   datetime_undef_if_invalid: 1
249   is_nullable: 1
250
251 =head2 debarredcomment
252
253   data_type: 'varchar'
254   is_nullable: 1
255   size: 255
256
257 =head2 contactname
258
259   data_type: 'mediumtext'
260   is_nullable: 1
261
262 =head2 contactfirstname
263
264   data_type: 'text'
265   is_nullable: 1
266
267 =head2 contacttitle
268
269   data_type: 'text'
270   is_nullable: 1
271
272 =head2 guarantorid
273
274   data_type: 'integer'
275   is_nullable: 1
276
277 =head2 borrowernotes
278
279   data_type: 'mediumtext'
280   is_nullable: 1
281
282 =head2 relationship
283
284   data_type: 'varchar'
285   is_nullable: 1
286   size: 100
287
288 =head2 ethnicity
289
290   data_type: 'varchar'
291   is_nullable: 1
292   size: 50
293
294 =head2 ethnotes
295
296   data_type: 'varchar'
297   is_nullable: 1
298   size: 255
299
300 =head2 sex
301
302   data_type: 'varchar'
303   is_nullable: 1
304   size: 1
305
306 =head2 password
307
308   data_type: 'varchar'
309   is_nullable: 1
310   size: 60
311
312 =head2 flags
313
314   data_type: 'integer'
315   is_nullable: 1
316
317 =head2 userid
318
319   data_type: 'varchar'
320   is_nullable: 1
321   size: 75
322
323 =head2 opacnote
324
325   data_type: 'mediumtext'
326   is_nullable: 1
327
328 =head2 contactnote
329
330   data_type: 'varchar'
331   is_nullable: 1
332   size: 255
333
334 =head2 sort1
335
336   data_type: 'varchar'
337   is_nullable: 1
338   size: 80
339
340 =head2 sort2
341
342   data_type: 'varchar'
343   is_nullable: 1
344   size: 80
345
346 =head2 altcontactfirstname
347
348   data_type: 'varchar'
349   is_nullable: 1
350   size: 255
351
352 =head2 altcontactsurname
353
354   data_type: 'varchar'
355   is_nullable: 1
356   size: 255
357
358 =head2 altcontactaddress1
359
360   data_type: 'varchar'
361   is_nullable: 1
362   size: 255
363
364 =head2 altcontactaddress2
365
366   data_type: 'varchar'
367   is_nullable: 1
368   size: 255
369
370 =head2 altcontactaddress3
371
372   data_type: 'varchar'
373   is_nullable: 1
374   size: 255
375
376 =head2 altcontactstate
377
378   data_type: 'text'
379   is_nullable: 1
380
381 =head2 altcontactzipcode
382
383   data_type: 'varchar'
384   is_nullable: 1
385   size: 50
386
387 =head2 altcontactcountry
388
389   data_type: 'text'
390   is_nullable: 1
391
392 =head2 altcontactphone
393
394   data_type: 'varchar'
395   is_nullable: 1
396   size: 50
397
398 =head2 smsalertnumber
399
400   data_type: 'varchar'
401   is_nullable: 1
402   size: 50
403
404 =head2 privacy
405
406   data_type: 'integer'
407   default_value: 1
408   is_nullable: 0
409
410 =cut
411
412 __PACKAGE__->add_columns(
413   "borrowernumber",
414   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
415   "cardnumber",
416   { data_type => "varchar", is_nullable => 1, size => 16 },
417   "surname",
418   { data_type => "mediumtext", is_nullable => 0 },
419   "firstname",
420   { data_type => "text", is_nullable => 1 },
421   "title",
422   { data_type => "mediumtext", is_nullable => 1 },
423   "othernames",
424   { data_type => "mediumtext", is_nullable => 1 },
425   "initials",
426   { data_type => "text", is_nullable => 1 },
427   "streetnumber",
428   { data_type => "varchar", is_nullable => 1, size => 10 },
429   "streettype",
430   { data_type => "varchar", is_nullable => 1, size => 50 },
431   "address",
432   { data_type => "mediumtext", is_nullable => 0 },
433   "address2",
434   { data_type => "text", is_nullable => 1 },
435   "city",
436   { data_type => "mediumtext", is_nullable => 0 },
437   "state",
438   { data_type => "text", is_nullable => 1 },
439   "zipcode",
440   { data_type => "varchar", is_nullable => 1, size => 25 },
441   "country",
442   { data_type => "text", is_nullable => 1 },
443   "email",
444   { data_type => "mediumtext", is_nullable => 1 },
445   "phone",
446   { data_type => "text", is_nullable => 1 },
447   "mobile",
448   { data_type => "varchar", is_nullable => 1, size => 50 },
449   "fax",
450   { data_type => "mediumtext", is_nullable => 1 },
451   "emailpro",
452   { data_type => "text", is_nullable => 1 },
453   "phonepro",
454   { data_type => "text", is_nullable => 1 },
455   "B_streetnumber",
456   {
457     accessor => "b_streetnumber",
458     data_type => "varchar",
459     is_nullable => 1,
460     size => 10,
461   },
462   "B_streettype",
463   {
464     accessor => "b_streettype",
465     data_type => "varchar",
466     is_nullable => 1,
467     size => 50,
468   },
469   "B_address",
470   {
471     accessor => "b_address",
472     data_type => "varchar",
473     is_nullable => 1,
474     size => 100,
475   },
476   "B_address2",
477   { accessor => "b_address2", data_type => "text", is_nullable => 1 },
478   "B_city",
479   { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
480   "B_state",
481   { accessor => "b_state", data_type => "text", is_nullable => 1 },
482   "B_zipcode",
483   {
484     accessor => "b_zipcode",
485     data_type => "varchar",
486     is_nullable => 1,
487     size => 25,
488   },
489   "B_country",
490   { accessor => "b_country", data_type => "text", is_nullable => 1 },
491   "B_email",
492   { accessor => "b_email", data_type => "text", is_nullable => 1 },
493   "B_phone",
494   { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
495   "dateofbirth",
496   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
497   "branchcode",
498   {
499     data_type => "varchar",
500     default_value => "",
501     is_foreign_key => 1,
502     is_nullable => 0,
503     size => 10,
504   },
505   "categorycode",
506   {
507     data_type => "varchar",
508     default_value => "",
509     is_foreign_key => 1,
510     is_nullable => 0,
511     size => 10,
512   },
513   "dateenrolled",
514   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
515   "dateexpiry",
516   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
517   "gonenoaddress",
518   { data_type => "tinyint", is_nullable => 1 },
519   "lost",
520   { data_type => "tinyint", is_nullable => 1 },
521   "debarred",
522   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
523   "debarredcomment",
524   { data_type => "varchar", is_nullable => 1, size => 255 },
525   "contactname",
526   { data_type => "mediumtext", is_nullable => 1 },
527   "contactfirstname",
528   { data_type => "text", is_nullable => 1 },
529   "contacttitle",
530   { data_type => "text", is_nullable => 1 },
531   "guarantorid",
532   { data_type => "integer", is_nullable => 1 },
533   "borrowernotes",
534   { data_type => "mediumtext", is_nullable => 1 },
535   "relationship",
536   { data_type => "varchar", is_nullable => 1, size => 100 },
537   "ethnicity",
538   { data_type => "varchar", is_nullable => 1, size => 50 },
539   "ethnotes",
540   { data_type => "varchar", is_nullable => 1, size => 255 },
541   "sex",
542   { data_type => "varchar", is_nullable => 1, size => 1 },
543   "password",
544   { data_type => "varchar", is_nullable => 1, size => 60 },
545   "flags",
546   { data_type => "integer", is_nullable => 1 },
547   "userid",
548   { data_type => "varchar", is_nullable => 1, size => 75 },
549   "opacnote",
550   { data_type => "mediumtext", is_nullable => 1 },
551   "contactnote",
552   { data_type => "varchar", is_nullable => 1, size => 255 },
553   "sort1",
554   { data_type => "varchar", is_nullable => 1, size => 80 },
555   "sort2",
556   { data_type => "varchar", is_nullable => 1, size => 80 },
557   "altcontactfirstname",
558   { data_type => "varchar", is_nullable => 1, size => 255 },
559   "altcontactsurname",
560   { data_type => "varchar", is_nullable => 1, size => 255 },
561   "altcontactaddress1",
562   { data_type => "varchar", is_nullable => 1, size => 255 },
563   "altcontactaddress2",
564   { data_type => "varchar", is_nullable => 1, size => 255 },
565   "altcontactaddress3",
566   { data_type => "varchar", is_nullable => 1, size => 255 },
567   "altcontactstate",
568   { data_type => "text", is_nullable => 1 },
569   "altcontactzipcode",
570   { data_type => "varchar", is_nullable => 1, size => 50 },
571   "altcontactcountry",
572   { data_type => "text", is_nullable => 1 },
573   "altcontactphone",
574   { data_type => "varchar", is_nullable => 1, size => 50 },
575   "smsalertnumber",
576   { data_type => "varchar", is_nullable => 1, size => 50 },
577   "privacy",
578   { data_type => "integer", default_value => 1, is_nullable => 0 },
579 );
580
581 =head1 PRIMARY KEY
582
583 =over 4
584
585 =item * L</borrowernumber>
586
587 =back
588
589 =cut
590
591 __PACKAGE__->set_primary_key("borrowernumber");
592
593 =head1 UNIQUE CONSTRAINTS
594
595 =head2 C<cardnumber>
596
597 =over 4
598
599 =item * L</cardnumber>
600
601 =back
602
603 =cut
604
605 __PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
606
607 =head2 C<userid>
608
609 =over 4
610
611 =item * L</userid>
612
613 =back
614
615 =cut
616
617 __PACKAGE__->add_unique_constraint("userid", ["userid"]);
618
619 =head1 RELATIONS
620
621 =head2 accountlines
622
623 Type: has_many
624
625 Related object: L<Koha::Schema::Result::Accountline>
626
627 =cut
628
629 __PACKAGE__->has_many(
630   "accountlines",
631   "Koha::Schema::Result::Accountline",
632   { "foreign.borrowernumber" => "self.borrowernumber" },
633   { cascade_copy => 0, cascade_delete => 0 },
634 );
635
636 =head2 accountoffsets
637
638 Type: has_many
639
640 Related object: L<Koha::Schema::Result::Accountoffset>
641
642 =cut
643
644 __PACKAGE__->has_many(
645   "accountoffsets",
646   "Koha::Schema::Result::Accountoffset",
647   { "foreign.borrowernumber" => "self.borrowernumber" },
648   { cascade_copy => 0, cascade_delete => 0 },
649 );
650
651 =head2 aqbasketusers
652
653 Type: has_many
654
655 Related object: L<Koha::Schema::Result::Aqbasketuser>
656
657 =cut
658
659 __PACKAGE__->has_many(
660   "aqbasketusers",
661   "Koha::Schema::Result::Aqbasketuser",
662   { "foreign.borrowernumber" => "self.borrowernumber" },
663   { cascade_copy => 0, cascade_delete => 0 },
664 );
665
666 =head2 aqbudgetborrowers
667
668 Type: has_many
669
670 Related object: L<Koha::Schema::Result::Aqbudgetborrower>
671
672 =cut
673
674 __PACKAGE__->has_many(
675   "aqbudgetborrowers",
676   "Koha::Schema::Result::Aqbudgetborrower",
677   { "foreign.borrowernumber" => "self.borrowernumber" },
678   { cascade_copy => 0, cascade_delete => 0 },
679 );
680
681 =head2 aqorder_users
682
683 Type: has_many
684
685 Related object: L<Koha::Schema::Result::AqorderUser>
686
687 =cut
688
689 __PACKAGE__->has_many(
690   "aqorder_users",
691   "Koha::Schema::Result::AqorderUser",
692   { "foreign.borrowernumber" => "self.borrowernumber" },
693   { cascade_copy => 0, cascade_delete => 0 },
694 );
695
696 =head2 borrower_attributes
697
698 Type: has_many
699
700 Related object: L<Koha::Schema::Result::BorrowerAttribute>
701
702 =cut
703
704 __PACKAGE__->has_many(
705   "borrower_attributes",
706   "Koha::Schema::Result::BorrowerAttribute",
707   { "foreign.borrowernumber" => "self.borrowernumber" },
708   { cascade_copy => 0, cascade_delete => 0 },
709 );
710
711 =head2 borrower_debarments
712
713 Type: has_many
714
715 Related object: L<Koha::Schema::Result::BorrowerDebarment>
716
717 =cut
718
719 __PACKAGE__->has_many(
720   "borrower_debarments",
721   "Koha::Schema::Result::BorrowerDebarment",
722   { "foreign.borrowernumber" => "self.borrowernumber" },
723   { cascade_copy => 0, cascade_delete => 0 },
724 );
725
726 =head2 borrower_files
727
728 Type: has_many
729
730 Related object: L<Koha::Schema::Result::BorrowerFile>
731
732 =cut
733
734 __PACKAGE__->has_many(
735   "borrower_files",
736   "Koha::Schema::Result::BorrowerFile",
737   { "foreign.borrowernumber" => "self.borrowernumber" },
738   { cascade_copy => 0, cascade_delete => 0 },
739 );
740
741 =head2 borrower_message_preferences
742
743 Type: has_many
744
745 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
746
747 =cut
748
749 __PACKAGE__->has_many(
750   "borrower_message_preferences",
751   "Koha::Schema::Result::BorrowerMessagePreference",
752   { "foreign.borrowernumber" => "self.borrowernumber" },
753   { cascade_copy => 0, cascade_delete => 0 },
754 );
755
756 =head2 borrower_syncs
757
758 Type: has_many
759
760 Related object: L<Koha::Schema::Result::BorrowerSync>
761
762 =cut
763
764 __PACKAGE__->has_many(
765   "borrower_syncs",
766   "Koha::Schema::Result::BorrowerSync",
767   { "foreign.borrowernumber" => "self.borrowernumber" },
768   { cascade_copy => 0, cascade_delete => 0 },
769 );
770
771 =head2 branchcode
772
773 Type: belongs_to
774
775 Related object: L<Koha::Schema::Result::Branch>
776
777 =cut
778
779 __PACKAGE__->belongs_to(
780   "branchcode",
781   "Koha::Schema::Result::Branch",
782   { branchcode => "branchcode" },
783   { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
784 );
785
786 =head2 categorycode
787
788 Type: belongs_to
789
790 Related object: L<Koha::Schema::Result::Category>
791
792 =cut
793
794 __PACKAGE__->belongs_to(
795   "categorycode",
796   "Koha::Schema::Result::Category",
797   { categorycode => "categorycode" },
798   { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
799 );
800
801 =head2 course_instructors
802
803 Type: has_many
804
805 Related object: L<Koha::Schema::Result::CourseInstructor>
806
807 =cut
808
809 __PACKAGE__->has_many(
810   "course_instructors",
811   "Koha::Schema::Result::CourseInstructor",
812   { "foreign.borrowernumber" => "self.borrowernumber" },
813   { cascade_copy => 0, cascade_delete => 0 },
814 );
815
816 =head2 creator_batches
817
818 Type: has_many
819
820 Related object: L<Koha::Schema::Result::CreatorBatch>
821
822 =cut
823
824 __PACKAGE__->has_many(
825   "creator_batches",
826   "Koha::Schema::Result::CreatorBatch",
827   { "foreign.borrower_number" => "self.borrowernumber" },
828   { cascade_copy => 0, cascade_delete => 0 },
829 );
830
831 =head2 hold_fill_targets
832
833 Type: has_many
834
835 Related object: L<Koha::Schema::Result::HoldFillTarget>
836
837 =cut
838
839 __PACKAGE__->has_many(
840   "hold_fill_targets",
841   "Koha::Schema::Result::HoldFillTarget",
842   { "foreign.borrowernumber" => "self.borrowernumber" },
843   { cascade_copy => 0, cascade_delete => 0 },
844 );
845
846 =head2 issues
847
848 Type: has_many
849
850 Related object: L<Koha::Schema::Result::Issue>
851
852 =cut
853
854 __PACKAGE__->has_many(
855   "issues",
856   "Koha::Schema::Result::Issue",
857   { "foreign.borrowernumber" => "self.borrowernumber" },
858   { cascade_copy => 0, cascade_delete => 0 },
859 );
860
861 =head2 message_queues
862
863 Type: has_many
864
865 Related object: L<Koha::Schema::Result::MessageQueue>
866
867 =cut
868
869 __PACKAGE__->has_many(
870   "message_queues",
871   "Koha::Schema::Result::MessageQueue",
872   { "foreign.borrowernumber" => "self.borrowernumber" },
873   { cascade_copy => 0, cascade_delete => 0 },
874 );
875
876 =head2 old_issues
877
878 Type: has_many
879
880 Related object: L<Koha::Schema::Result::OldIssue>
881
882 =cut
883
884 __PACKAGE__->has_many(
885   "old_issues",
886   "Koha::Schema::Result::OldIssue",
887   { "foreign.borrowernumber" => "self.borrowernumber" },
888   { cascade_copy => 0, cascade_delete => 0 },
889 );
890
891 =head2 old_reserves
892
893 Type: has_many
894
895 Related object: L<Koha::Schema::Result::OldReserve>
896
897 =cut
898
899 __PACKAGE__->has_many(
900   "old_reserves",
901   "Koha::Schema::Result::OldReserve",
902   { "foreign.borrowernumber" => "self.borrowernumber" },
903   { cascade_copy => 0, cascade_delete => 0 },
904 );
905
906 =head2 patron_list_patrons
907
908 Type: has_many
909
910 Related object: L<Koha::Schema::Result::PatronListPatron>
911
912 =cut
913
914 __PACKAGE__->has_many(
915   "patron_list_patrons",
916   "Koha::Schema::Result::PatronListPatron",
917   { "foreign.borrowernumber" => "self.borrowernumber" },
918   { cascade_copy => 0, cascade_delete => 0 },
919 );
920
921 =head2 patron_lists
922
923 Type: has_many
924
925 Related object: L<Koha::Schema::Result::PatronList>
926
927 =cut
928
929 __PACKAGE__->has_many(
930   "patron_lists",
931   "Koha::Schema::Result::PatronList",
932   { "foreign.owner" => "self.borrowernumber" },
933   { cascade_copy => 0, cascade_delete => 0 },
934 );
935
936 =head2 patronimage
937
938 Type: might_have
939
940 Related object: L<Koha::Schema::Result::Patronimage>
941
942 =cut
943
944 __PACKAGE__->might_have(
945   "patronimage",
946   "Koha::Schema::Result::Patronimage",
947   { "foreign.borrowernumber" => "self.borrowernumber" },
948   { cascade_copy => 0, cascade_delete => 0 },
949 );
950
951 =head2 ratings
952
953 Type: has_many
954
955 Related object: L<Koha::Schema::Result::Rating>
956
957 =cut
958
959 __PACKAGE__->has_many(
960   "ratings",
961   "Koha::Schema::Result::Rating",
962   { "foreign.borrowernumber" => "self.borrowernumber" },
963   { cascade_copy => 0, cascade_delete => 0 },
964 );
965
966 =head2 reserves
967
968 Type: has_many
969
970 Related object: L<Koha::Schema::Result::Reserve>
971
972 =cut
973
974 __PACKAGE__->has_many(
975   "reserves",
976   "Koha::Schema::Result::Reserve",
977   { "foreign.borrowernumber" => "self.borrowernumber" },
978   { cascade_copy => 0, cascade_delete => 0 },
979 );
980
981 =head2 reviews
982
983 Type: has_many
984
985 Related object: L<Koha::Schema::Result::Review>
986
987 =cut
988
989 __PACKAGE__->has_many(
990   "reviews",
991   "Koha::Schema::Result::Review",
992   { "foreign.borrowernumber" => "self.borrowernumber" },
993   { cascade_copy => 0, cascade_delete => 0 },
994 );
995
996 =head2 subscriptionroutinglists
997
998 Type: has_many
999
1000 Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
1001
1002 =cut
1003
1004 __PACKAGE__->has_many(
1005   "subscriptionroutinglists",
1006   "Koha::Schema::Result::Subscriptionroutinglist",
1007   { "foreign.borrowernumber" => "self.borrowernumber" },
1008   { cascade_copy => 0, cascade_delete => 0 },
1009 );
1010
1011 =head2 tags_all
1012
1013 Type: has_many
1014
1015 Related object: L<Koha::Schema::Result::TagAll>
1016
1017 =cut
1018
1019 __PACKAGE__->has_many(
1020   "tags_all",
1021   "Koha::Schema::Result::TagAll",
1022   { "foreign.borrowernumber" => "self.borrowernumber" },
1023   { cascade_copy => 0, cascade_delete => 0 },
1024 );
1025
1026 =head2 tags_approvals
1027
1028 Type: has_many
1029
1030 Related object: L<Koha::Schema::Result::TagsApproval>
1031
1032 =cut
1033
1034 __PACKAGE__->has_many(
1035   "tags_approvals",
1036   "Koha::Schema::Result::TagsApproval",
1037   { "foreign.approved_by" => "self.borrowernumber" },
1038   { cascade_copy => 0, cascade_delete => 0 },
1039 );
1040
1041 =head2 user_permissions
1042
1043 Type: has_many
1044
1045 Related object: L<Koha::Schema::Result::UserPermission>
1046
1047 =cut
1048
1049 __PACKAGE__->has_many(
1050   "user_permissions",
1051   "Koha::Schema::Result::UserPermission",
1052   { "foreign.borrowernumber" => "self.borrowernumber" },
1053   { cascade_copy => 0, cascade_delete => 0 },
1054 );
1055
1056 =head2 virtualshelfcontents
1057
1058 Type: has_many
1059
1060 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
1061
1062 =cut
1063
1064 __PACKAGE__->has_many(
1065   "virtualshelfcontents",
1066   "Koha::Schema::Result::Virtualshelfcontent",
1067   { "foreign.borrowernumber" => "self.borrowernumber" },
1068   { cascade_copy => 0, cascade_delete => 0 },
1069 );
1070
1071 =head2 virtualshelfshares
1072
1073 Type: has_many
1074
1075 Related object: L<Koha::Schema::Result::Virtualshelfshare>
1076
1077 =cut
1078
1079 __PACKAGE__->has_many(
1080   "virtualshelfshares",
1081   "Koha::Schema::Result::Virtualshelfshare",
1082   { "foreign.borrowernumber" => "self.borrowernumber" },
1083   { cascade_copy => 0, cascade_delete => 0 },
1084 );
1085
1086 =head2 virtualshelves
1087
1088 Type: has_many
1089
1090 Related object: L<Koha::Schema::Result::Virtualshelve>
1091
1092 =cut
1093
1094 __PACKAGE__->has_many(
1095   "virtualshelves",
1096   "Koha::Schema::Result::Virtualshelve",
1097   { "foreign.owner" => "self.borrowernumber" },
1098   { cascade_copy => 0, cascade_delete => 0 },
1099 );
1100
1101 =head2 basketnoes
1102
1103 Type: many_to_many
1104
1105 Composing rels: L</aqbasketusers> -> basketno
1106
1107 =cut
1108
1109 __PACKAGE__->many_to_many("basketnoes", "aqbasketusers", "basketno");
1110
1111 =head2 budgets
1112
1113 Type: many_to_many
1114
1115 Composing rels: L</aqbudgetborrowers> -> budget
1116
1117 =cut
1118
1119 __PACKAGE__->many_to_many("budgets", "aqbudgetborrowers", "budget");
1120
1121 =head2 courses
1122
1123 Type: many_to_many
1124
1125 Composing rels: L</course_instructors> -> course
1126
1127 =cut
1128
1129 __PACKAGE__->many_to_many("courses", "course_instructors", "course");
1130
1131 =head2 ordernumbers
1132
1133 Type: many_to_many
1134
1135 Composing rels: L</aqorder_users> -> ordernumber
1136
1137 =cut
1138
1139 __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1140
1141
1142 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-13 13:23:31
1143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eNJqc7s8OA+vQIKYUryvaA
1144
1145
1146 # You can replace this text with custom content, and it will be preserved on regeneration
1147 1;