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