Bug 15736: Update DB rev (3.22.04.001)
[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 sex
289
290   data_type: 'varchar'
291   is_nullable: 1
292   size: 1
293
294 =head2 password
295
296   data_type: 'varchar'
297   is_nullable: 1
298   size: 60
299
300 =head2 flags
301
302   data_type: 'integer'
303   is_nullable: 1
304
305 =head2 userid
306
307   data_type: 'varchar'
308   is_nullable: 1
309   size: 75
310
311 =head2 opacnote
312
313   data_type: 'mediumtext'
314   is_nullable: 1
315
316 =head2 contactnote
317
318   data_type: 'varchar'
319   is_nullable: 1
320   size: 255
321
322 =head2 sort1
323
324   data_type: 'varchar'
325   is_nullable: 1
326   size: 80
327
328 =head2 sort2
329
330   data_type: 'varchar'
331   is_nullable: 1
332   size: 80
333
334 =head2 altcontactfirstname
335
336   data_type: 'varchar'
337   is_nullable: 1
338   size: 255
339
340 =head2 altcontactsurname
341
342   data_type: 'varchar'
343   is_nullable: 1
344   size: 255
345
346 =head2 altcontactaddress1
347
348   data_type: 'varchar'
349   is_nullable: 1
350   size: 255
351
352 =head2 altcontactaddress2
353
354   data_type: 'varchar'
355   is_nullable: 1
356   size: 255
357
358 =head2 altcontactaddress3
359
360   data_type: 'varchar'
361   is_nullable: 1
362   size: 255
363
364 =head2 altcontactstate
365
366   data_type: 'text'
367   is_nullable: 1
368
369 =head2 altcontactzipcode
370
371   data_type: 'varchar'
372   is_nullable: 1
373   size: 50
374
375 =head2 altcontactcountry
376
377   data_type: 'text'
378   is_nullable: 1
379
380 =head2 altcontactphone
381
382   data_type: 'varchar'
383   is_nullable: 1
384   size: 50
385
386 =head2 smsalertnumber
387
388   data_type: 'varchar'
389   is_nullable: 1
390   size: 50
391
392 =head2 privacy
393
394   data_type: 'integer'
395   default_value: 1
396   is_nullable: 0
397
398 =cut
399
400 __PACKAGE__->add_columns(
401   "borrowernumber",
402   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
403   "cardnumber",
404   { data_type => "varchar", is_nullable => 1, size => 16 },
405   "surname",
406   { data_type => "mediumtext", is_nullable => 0 },
407   "firstname",
408   { data_type => "text", is_nullable => 1 },
409   "title",
410   { data_type => "mediumtext", is_nullable => 1 },
411   "othernames",
412   { data_type => "mediumtext", is_nullable => 1 },
413   "initials",
414   { data_type => "text", is_nullable => 1 },
415   "streetnumber",
416   { data_type => "varchar", is_nullable => 1, size => 10 },
417   "streettype",
418   { data_type => "varchar", is_nullable => 1, size => 50 },
419   "address",
420   { data_type => "mediumtext", is_nullable => 0 },
421   "address2",
422   { data_type => "text", is_nullable => 1 },
423   "city",
424   { data_type => "mediumtext", is_nullable => 0 },
425   "state",
426   { data_type => "text", is_nullable => 1 },
427   "zipcode",
428   { data_type => "varchar", is_nullable => 1, size => 25 },
429   "country",
430   { data_type => "text", is_nullable => 1 },
431   "email",
432   { data_type => "mediumtext", is_nullable => 1 },
433   "phone",
434   { data_type => "text", is_nullable => 1 },
435   "mobile",
436   { data_type => "varchar", is_nullable => 1, size => 50 },
437   "fax",
438   { data_type => "mediumtext", is_nullable => 1 },
439   "emailpro",
440   { data_type => "text", is_nullable => 1 },
441   "phonepro",
442   { data_type => "text", is_nullable => 1 },
443   "B_streetnumber",
444   {
445     accessor => "b_streetnumber",
446     data_type => "varchar",
447     is_nullable => 1,
448     size => 10,
449   },
450   "B_streettype",
451   {
452     accessor => "b_streettype",
453     data_type => "varchar",
454     is_nullable => 1,
455     size => 50,
456   },
457   "B_address",
458   {
459     accessor => "b_address",
460     data_type => "varchar",
461     is_nullable => 1,
462     size => 100,
463   },
464   "B_address2",
465   { accessor => "b_address2", data_type => "text", is_nullable => 1 },
466   "B_city",
467   { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
468   "B_state",
469   { accessor => "b_state", data_type => "text", is_nullable => 1 },
470   "B_zipcode",
471   {
472     accessor => "b_zipcode",
473     data_type => "varchar",
474     is_nullable => 1,
475     size => 25,
476   },
477   "B_country",
478   { accessor => "b_country", data_type => "text", is_nullable => 1 },
479   "B_email",
480   { accessor => "b_email", data_type => "text", is_nullable => 1 },
481   "B_phone",
482   { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
483   "dateofbirth",
484   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
485   "branchcode",
486   {
487     data_type => "varchar",
488     default_value => "",
489     is_foreign_key => 1,
490     is_nullable => 0,
491     size => 10,
492   },
493   "categorycode",
494   {
495     data_type => "varchar",
496     default_value => "",
497     is_foreign_key => 1,
498     is_nullable => 0,
499     size => 10,
500   },
501   "dateenrolled",
502   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
503   "dateexpiry",
504   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
505   "gonenoaddress",
506   { data_type => "tinyint", is_nullable => 1 },
507   "lost",
508   { data_type => "tinyint", is_nullable => 1 },
509   "debarred",
510   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
511   "debarredcomment",
512   { data_type => "varchar", is_nullable => 1, size => 255 },
513   "contactname",
514   { data_type => "mediumtext", is_nullable => 1 },
515   "contactfirstname",
516   { data_type => "text", is_nullable => 1 },
517   "contacttitle",
518   { data_type => "text", is_nullable => 1 },
519   "guarantorid",
520   { data_type => "integer", is_nullable => 1 },
521   "borrowernotes",
522   { data_type => "mediumtext", is_nullable => 1 },
523   "relationship",
524   { data_type => "varchar", is_nullable => 1, size => 100 },
525   "sex",
526   { data_type => "varchar", is_nullable => 1, size => 1 },
527   "password",
528   { data_type => "varchar", is_nullable => 1, size => 60 },
529   "flags",
530   { data_type => "integer", is_nullable => 1 },
531   "userid",
532   { data_type => "varchar", is_nullable => 1, size => 75 },
533   "opacnote",
534   { data_type => "mediumtext", is_nullable => 1 },
535   "contactnote",
536   { data_type => "varchar", is_nullable => 1, size => 255 },
537   "sort1",
538   { data_type => "varchar", is_nullable => 1, size => 80 },
539   "sort2",
540   { data_type => "varchar", is_nullable => 1, size => 80 },
541   "altcontactfirstname",
542   { data_type => "varchar", is_nullable => 1, size => 255 },
543   "altcontactsurname",
544   { data_type => "varchar", is_nullable => 1, size => 255 },
545   "altcontactaddress1",
546   { data_type => "varchar", is_nullable => 1, size => 255 },
547   "altcontactaddress2",
548   { data_type => "varchar", is_nullable => 1, size => 255 },
549   "altcontactaddress3",
550   { data_type => "varchar", is_nullable => 1, size => 255 },
551   "altcontactstate",
552   { data_type => "text", is_nullable => 1 },
553   "altcontactzipcode",
554   { data_type => "varchar", is_nullable => 1, size => 50 },
555   "altcontactcountry",
556   { data_type => "text", is_nullable => 1 },
557   "altcontactphone",
558   { data_type => "varchar", is_nullable => 1, size => 50 },
559   "smsalertnumber",
560   { data_type => "varchar", is_nullable => 1, size => 50 },
561   "privacy",
562   { data_type => "integer", default_value => 1, is_nullable => 0 },
563 );
564
565 =head1 PRIMARY KEY
566
567 =over 4
568
569 =item * L</borrowernumber>
570
571 =back
572
573 =cut
574
575 __PACKAGE__->set_primary_key("borrowernumber");
576
577 =head1 UNIQUE CONSTRAINTS
578
579 =head2 C<cardnumber>
580
581 =over 4
582
583 =item * L</cardnumber>
584
585 =back
586
587 =cut
588
589 __PACKAGE__->add_unique_constraint("cardnumber", ["cardnumber"]);
590
591 =head2 C<userid>
592
593 =over 4
594
595 =item * L</userid>
596
597 =back
598
599 =cut
600
601 __PACKAGE__->add_unique_constraint("userid", ["userid"]);
602
603 =head1 RELATIONS
604
605 =head2 accountlines
606
607 Type: has_many
608
609 Related object: L<Koha::Schema::Result::Accountline>
610
611 =cut
612
613 __PACKAGE__->has_many(
614   "accountlines",
615   "Koha::Schema::Result::Accountline",
616   { "foreign.borrowernumber" => "self.borrowernumber" },
617   { cascade_copy => 0, cascade_delete => 0 },
618 );
619
620 =head2 accountoffsets
621
622 Type: has_many
623
624 Related object: L<Koha::Schema::Result::Accountoffset>
625
626 =cut
627
628 __PACKAGE__->has_many(
629   "accountoffsets",
630   "Koha::Schema::Result::Accountoffset",
631   { "foreign.borrowernumber" => "self.borrowernumber" },
632   { cascade_copy => 0, cascade_delete => 0 },
633 );
634
635 =head2 aqbasketusers
636
637 Type: has_many
638
639 Related object: L<Koha::Schema::Result::Aqbasketuser>
640
641 =cut
642
643 __PACKAGE__->has_many(
644   "aqbasketusers",
645   "Koha::Schema::Result::Aqbasketuser",
646   { "foreign.borrowernumber" => "self.borrowernumber" },
647   { cascade_copy => 0, cascade_delete => 0 },
648 );
649
650 =head2 aqbudgetborrowers
651
652 Type: has_many
653
654 Related object: L<Koha::Schema::Result::Aqbudgetborrower>
655
656 =cut
657
658 __PACKAGE__->has_many(
659   "aqbudgetborrowers",
660   "Koha::Schema::Result::Aqbudgetborrower",
661   { "foreign.borrowernumber" => "self.borrowernumber" },
662   { cascade_copy => 0, cascade_delete => 0 },
663 );
664
665 =head2 aqorder_users
666
667 Type: has_many
668
669 Related object: L<Koha::Schema::Result::AqorderUser>
670
671 =cut
672
673 __PACKAGE__->has_many(
674   "aqorder_users",
675   "Koha::Schema::Result::AqorderUser",
676   { "foreign.borrowernumber" => "self.borrowernumber" },
677   { cascade_copy => 0, cascade_delete => 0 },
678 );
679
680 =head2 borrower_attributes
681
682 Type: has_many
683
684 Related object: L<Koha::Schema::Result::BorrowerAttribute>
685
686 =cut
687
688 __PACKAGE__->has_many(
689   "borrower_attributes",
690   "Koha::Schema::Result::BorrowerAttribute",
691   { "foreign.borrowernumber" => "self.borrowernumber" },
692   { cascade_copy => 0, cascade_delete => 0 },
693 );
694
695 =head2 borrower_debarments
696
697 Type: has_many
698
699 Related object: L<Koha::Schema::Result::BorrowerDebarment>
700
701 =cut
702
703 __PACKAGE__->has_many(
704   "borrower_debarments",
705   "Koha::Schema::Result::BorrowerDebarment",
706   { "foreign.borrowernumber" => "self.borrowernumber" },
707   { cascade_copy => 0, cascade_delete => 0 },
708 );
709
710 =head2 borrower_files
711
712 Type: has_many
713
714 Related object: L<Koha::Schema::Result::BorrowerFile>
715
716 =cut
717
718 __PACKAGE__->has_many(
719   "borrower_files",
720   "Koha::Schema::Result::BorrowerFile",
721   { "foreign.borrowernumber" => "self.borrowernumber" },
722   { cascade_copy => 0, cascade_delete => 0 },
723 );
724
725 =head2 borrower_message_preferences
726
727 Type: has_many
728
729 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
730
731 =cut
732
733 __PACKAGE__->has_many(
734   "borrower_message_preferences",
735   "Koha::Schema::Result::BorrowerMessagePreference",
736   { "foreign.borrowernumber" => "self.borrowernumber" },
737   { cascade_copy => 0, cascade_delete => 0 },
738 );
739
740 =head2 borrower_syncs
741
742 Type: has_many
743
744 Related object: L<Koha::Schema::Result::BorrowerSync>
745
746 =cut
747
748 __PACKAGE__->has_many(
749   "borrower_syncs",
750   "Koha::Schema::Result::BorrowerSync",
751   { "foreign.borrowernumber" => "self.borrowernumber" },
752   { cascade_copy => 0, cascade_delete => 0 },
753 );
754
755 =head2 branchcode
756
757 Type: belongs_to
758
759 Related object: L<Koha::Schema::Result::Branch>
760
761 =cut
762
763 __PACKAGE__->belongs_to(
764   "branchcode",
765   "Koha::Schema::Result::Branch",
766   { branchcode => "branchcode" },
767   { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
768 );
769
770 =head2 categorycode
771
772 Type: belongs_to
773
774 Related object: L<Koha::Schema::Result::Category>
775
776 =cut
777
778 __PACKAGE__->belongs_to(
779   "categorycode",
780   "Koha::Schema::Result::Category",
781   { categorycode => "categorycode" },
782   { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
783 );
784
785 =head2 course_instructors
786
787 Type: has_many
788
789 Related object: L<Koha::Schema::Result::CourseInstructor>
790
791 =cut
792
793 __PACKAGE__->has_many(
794   "course_instructors",
795   "Koha::Schema::Result::CourseInstructor",
796   { "foreign.borrowernumber" => "self.borrowernumber" },
797   { cascade_copy => 0, cascade_delete => 0 },
798 );
799
800 =head2 creator_batches
801
802 Type: has_many
803
804 Related object: L<Koha::Schema::Result::CreatorBatch>
805
806 =cut
807
808 __PACKAGE__->has_many(
809   "creator_batches",
810   "Koha::Schema::Result::CreatorBatch",
811   { "foreign.borrower_number" => "self.borrowernumber" },
812   { cascade_copy => 0, cascade_delete => 0 },
813 );
814
815 =head2 discharges
816
817 Type: has_many
818
819 Related object: L<Koha::Schema::Result::Discharge>
820
821 =cut
822
823 __PACKAGE__->has_many(
824   "discharges",
825   "Koha::Schema::Result::Discharge",
826   { "foreign.borrower" => "self.borrowernumber" },
827   { cascade_copy => 0, cascade_delete => 0 },
828 );
829
830 =head2 hold_fill_targets
831
832 Type: has_many
833
834 Related object: L<Koha::Schema::Result::HoldFillTarget>
835
836 =cut
837
838 __PACKAGE__->has_many(
839   "hold_fill_targets",
840   "Koha::Schema::Result::HoldFillTarget",
841   { "foreign.borrowernumber" => "self.borrowernumber" },
842   { cascade_copy => 0, cascade_delete => 0 },
843 );
844
845 =head2 issues
846
847 Type: has_many
848
849 Related object: L<Koha::Schema::Result::Issue>
850
851 =cut
852
853 __PACKAGE__->has_many(
854   "issues",
855   "Koha::Schema::Result::Issue",
856   { "foreign.borrowernumber" => "self.borrowernumber" },
857   { cascade_copy => 0, cascade_delete => 0 },
858 );
859
860 =head2 message_queues
861
862 Type: has_many
863
864 Related object: L<Koha::Schema::Result::MessageQueue>
865
866 =cut
867
868 __PACKAGE__->has_many(
869   "message_queues",
870   "Koha::Schema::Result::MessageQueue",
871   { "foreign.borrowernumber" => "self.borrowernumber" },
872   { cascade_copy => 0, cascade_delete => 0 },
873 );
874
875 =head2 old_issues
876
877 Type: has_many
878
879 Related object: L<Koha::Schema::Result::OldIssue>
880
881 =cut
882
883 __PACKAGE__->has_many(
884   "old_issues",
885   "Koha::Schema::Result::OldIssue",
886   { "foreign.borrowernumber" => "self.borrowernumber" },
887   { cascade_copy => 0, cascade_delete => 0 },
888 );
889
890 =head2 old_reserves
891
892 Type: has_many
893
894 Related object: L<Koha::Schema::Result::OldReserve>
895
896 =cut
897
898 __PACKAGE__->has_many(
899   "old_reserves",
900   "Koha::Schema::Result::OldReserve",
901   { "foreign.borrowernumber" => "self.borrowernumber" },
902   { cascade_copy => 0, cascade_delete => 0 },
903 );
904
905 =head2 opac_news
906
907 Type: has_many
908
909 Related object: L<Koha::Schema::Result::OpacNews>
910
911 =cut
912
913 __PACKAGE__->has_many(
914   "opac_news",
915   "Koha::Schema::Result::OpacNews",
916   { "foreign.borrowernumber" => "self.borrowernumber" },
917   { cascade_copy => 0, cascade_delete => 0 },
918 );
919
920 =head2 patron_list_patrons
921
922 Type: has_many
923
924 Related object: L<Koha::Schema::Result::PatronListPatron>
925
926 =cut
927
928 __PACKAGE__->has_many(
929   "patron_list_patrons",
930   "Koha::Schema::Result::PatronListPatron",
931   { "foreign.borrowernumber" => "self.borrowernumber" },
932   { cascade_copy => 0, cascade_delete => 0 },
933 );
934
935 =head2 patron_lists
936
937 Type: has_many
938
939 Related object: L<Koha::Schema::Result::PatronList>
940
941 =cut
942
943 __PACKAGE__->has_many(
944   "patron_lists",
945   "Koha::Schema::Result::PatronList",
946   { "foreign.owner" => "self.borrowernumber" },
947   { cascade_copy => 0, cascade_delete => 0 },
948 );
949
950 =head2 patronimage
951
952 Type: might_have
953
954 Related object: L<Koha::Schema::Result::Patronimage>
955
956 =cut
957
958 __PACKAGE__->might_have(
959   "patronimage",
960   "Koha::Schema::Result::Patronimage",
961   { "foreign.borrowernumber" => "self.borrowernumber" },
962   { cascade_copy => 0, cascade_delete => 0 },
963 );
964
965 =head2 ratings
966
967 Type: has_many
968
969 Related object: L<Koha::Schema::Result::Rating>
970
971 =cut
972
973 __PACKAGE__->has_many(
974   "ratings",
975   "Koha::Schema::Result::Rating",
976   { "foreign.borrowernumber" => "self.borrowernumber" },
977   { cascade_copy => 0, cascade_delete => 0 },
978 );
979
980 =head2 reserves
981
982 Type: has_many
983
984 Related object: L<Koha::Schema::Result::Reserve>
985
986 =cut
987
988 __PACKAGE__->has_many(
989   "reserves",
990   "Koha::Schema::Result::Reserve",
991   { "foreign.borrowernumber" => "self.borrowernumber" },
992   { cascade_copy => 0, cascade_delete => 0 },
993 );
994
995 =head2 reviews
996
997 Type: has_many
998
999 Related object: L<Koha::Schema::Result::Review>
1000
1001 =cut
1002
1003 __PACKAGE__->has_many(
1004   "reviews",
1005   "Koha::Schema::Result::Review",
1006   { "foreign.borrowernumber" => "self.borrowernumber" },
1007   { cascade_copy => 0, cascade_delete => 0 },
1008 );
1009
1010 =head2 subscriptionroutinglists
1011
1012 Type: has_many
1013
1014 Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
1015
1016 =cut
1017
1018 __PACKAGE__->has_many(
1019   "subscriptionroutinglists",
1020   "Koha::Schema::Result::Subscriptionroutinglist",
1021   { "foreign.borrowernumber" => "self.borrowernumber" },
1022   { cascade_copy => 0, cascade_delete => 0 },
1023 );
1024
1025 =head2 tags_all
1026
1027 Type: has_many
1028
1029 Related object: L<Koha::Schema::Result::TagAll>
1030
1031 =cut
1032
1033 __PACKAGE__->has_many(
1034   "tags_all",
1035   "Koha::Schema::Result::TagAll",
1036   { "foreign.borrowernumber" => "self.borrowernumber" },
1037   { cascade_copy => 0, cascade_delete => 0 },
1038 );
1039
1040 =head2 tags_approvals
1041
1042 Type: has_many
1043
1044 Related object: L<Koha::Schema::Result::TagsApproval>
1045
1046 =cut
1047
1048 __PACKAGE__->has_many(
1049   "tags_approvals",
1050   "Koha::Schema::Result::TagsApproval",
1051   { "foreign.approved_by" => "self.borrowernumber" },
1052   { cascade_copy => 0, cascade_delete => 0 },
1053 );
1054
1055 =head2 user_permissions
1056
1057 Type: has_many
1058
1059 Related object: L<Koha::Schema::Result::UserPermission>
1060
1061 =cut
1062
1063 __PACKAGE__->has_many(
1064   "user_permissions",
1065   "Koha::Schema::Result::UserPermission",
1066   { "foreign.borrowernumber" => "self.borrowernumber" },
1067   { cascade_copy => 0, cascade_delete => 0 },
1068 );
1069
1070 =head2 virtualshelfcontents
1071
1072 Type: has_many
1073
1074 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
1075
1076 =cut
1077
1078 __PACKAGE__->has_many(
1079   "virtualshelfcontents",
1080   "Koha::Schema::Result::Virtualshelfcontent",
1081   { "foreign.borrowernumber" => "self.borrowernumber" },
1082   { cascade_copy => 0, cascade_delete => 0 },
1083 );
1084
1085 =head2 virtualshelfshares
1086
1087 Type: has_many
1088
1089 Related object: L<Koha::Schema::Result::Virtualshelfshare>
1090
1091 =cut
1092
1093 __PACKAGE__->has_many(
1094   "virtualshelfshares",
1095   "Koha::Schema::Result::Virtualshelfshare",
1096   { "foreign.borrowernumber" => "self.borrowernumber" },
1097   { cascade_copy => 0, cascade_delete => 0 },
1098 );
1099
1100 =head2 virtualshelves
1101
1102 Type: has_many
1103
1104 Related object: L<Koha::Schema::Result::Virtualshelve>
1105
1106 =cut
1107
1108 __PACKAGE__->has_many(
1109   "virtualshelves",
1110   "Koha::Schema::Result::Virtualshelve",
1111   { "foreign.owner" => "self.borrowernumber" },
1112   { cascade_copy => 0, cascade_delete => 0 },
1113 );
1114
1115 =head2 basketnoes
1116
1117 Type: many_to_many
1118
1119 Composing rels: L</aqbasketusers> -> basketno
1120
1121 =cut
1122
1123 __PACKAGE__->many_to_many("basketnoes", "aqbasketusers", "basketno");
1124
1125 =head2 budgets
1126
1127 Type: many_to_many
1128
1129 Composing rels: L</aqbudgetborrowers> -> budget
1130
1131 =cut
1132
1133 __PACKAGE__->many_to_many("budgets", "aqbudgetborrowers", "budget");
1134
1135 =head2 courses
1136
1137 Type: many_to_many
1138
1139 Composing rels: L</course_instructors> -> course
1140
1141 =cut
1142
1143 __PACKAGE__->many_to_many("courses", "course_instructors", "course");
1144
1145 =head2 ordernumbers
1146
1147 Type: many_to_many
1148
1149 Composing rels: L</aqorder_users> -> ordernumber
1150
1151 =cut
1152
1153 __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1154
1155
1156 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-21 19:50:05
1157 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QafovaRBnm36nyoyQTGIgQ
1158
1159
1160 # You can replace this text with custom content, and it will be preserved on regeneration
1161 1;