Bug 11577: Add an automatic renewal cronjob
[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 =head1 RELATIONS
608
609 =head2 accountlines
610
611 Type: has_many
612
613 Related object: L<Koha::Schema::Result::Accountline>
614
615 =cut
616
617 __PACKAGE__->has_many(
618   "accountlines",
619   "Koha::Schema::Result::Accountline",
620   { "foreign.borrowernumber" => "self.borrowernumber" },
621   { cascade_copy => 0, cascade_delete => 0 },
622 );
623
624 =head2 accountoffsets
625
626 Type: has_many
627
628 Related object: L<Koha::Schema::Result::Accountoffset>
629
630 =cut
631
632 __PACKAGE__->has_many(
633   "accountoffsets",
634   "Koha::Schema::Result::Accountoffset",
635   { "foreign.borrowernumber" => "self.borrowernumber" },
636   { cascade_copy => 0, cascade_delete => 0 },
637 );
638
639 =head2 aqbasketusers
640
641 Type: has_many
642
643 Related object: L<Koha::Schema::Result::Aqbasketuser>
644
645 =cut
646
647 __PACKAGE__->has_many(
648   "aqbasketusers",
649   "Koha::Schema::Result::Aqbasketuser",
650   { "foreign.borrowernumber" => "self.borrowernumber" },
651   { cascade_copy => 0, cascade_delete => 0 },
652 );
653
654 =head2 aqbudgetborrowers
655
656 Type: has_many
657
658 Related object: L<Koha::Schema::Result::Aqbudgetborrower>
659
660 =cut
661
662 __PACKAGE__->has_many(
663   "aqbudgetborrowers",
664   "Koha::Schema::Result::Aqbudgetborrower",
665   { "foreign.borrowernumber" => "self.borrowernumber" },
666   { cascade_copy => 0, cascade_delete => 0 },
667 );
668
669 =head2 borrower_attributes
670
671 Type: has_many
672
673 Related object: L<Koha::Schema::Result::BorrowerAttribute>
674
675 =cut
676
677 __PACKAGE__->has_many(
678   "borrower_attributes",
679   "Koha::Schema::Result::BorrowerAttribute",
680   { "foreign.borrowernumber" => "self.borrowernumber" },
681   { cascade_copy => 0, cascade_delete => 0 },
682 );
683
684 =head2 borrower_debarments
685
686 Type: has_many
687
688 Related object: L<Koha::Schema::Result::BorrowerDebarment>
689
690 =cut
691
692 __PACKAGE__->has_many(
693   "borrower_debarments",
694   "Koha::Schema::Result::BorrowerDebarment",
695   { "foreign.borrowernumber" => "self.borrowernumber" },
696   { cascade_copy => 0, cascade_delete => 0 },
697 );
698
699 =head2 borrower_files
700
701 Type: has_many
702
703 Related object: L<Koha::Schema::Result::BorrowerFile>
704
705 =cut
706
707 __PACKAGE__->has_many(
708   "borrower_files",
709   "Koha::Schema::Result::BorrowerFile",
710   { "foreign.borrowernumber" => "self.borrowernumber" },
711   { cascade_copy => 0, cascade_delete => 0 },
712 );
713
714 =head2 borrower_message_preferences
715
716 Type: has_many
717
718 Related object: L<Koha::Schema::Result::BorrowerMessagePreference>
719
720 =cut
721
722 __PACKAGE__->has_many(
723   "borrower_message_preferences",
724   "Koha::Schema::Result::BorrowerMessagePreference",
725   { "foreign.borrowernumber" => "self.borrowernumber" },
726   { cascade_copy => 0, cascade_delete => 0 },
727 );
728
729 =head2 branchcode
730
731 Type: belongs_to
732
733 Related object: L<Koha::Schema::Result::Branch>
734
735 =cut
736
737 __PACKAGE__->belongs_to(
738   "branchcode",
739   "Koha::Schema::Result::Branch",
740   { branchcode => "branchcode" },
741   { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
742 );
743
744 =head2 categorycode
745
746 Type: belongs_to
747
748 Related object: L<Koha::Schema::Result::Category>
749
750 =cut
751
752 __PACKAGE__->belongs_to(
753   "categorycode",
754   "Koha::Schema::Result::Category",
755   { categorycode => "categorycode" },
756   { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
757 );
758
759 =head2 course_instructors
760
761 Type: has_many
762
763 Related object: L<Koha::Schema::Result::CourseInstructor>
764
765 =cut
766
767 __PACKAGE__->has_many(
768   "course_instructors",
769   "Koha::Schema::Result::CourseInstructor",
770   { "foreign.borrowernumber" => "self.borrowernumber" },
771   { cascade_copy => 0, cascade_delete => 0 },
772 );
773
774 =head2 creator_batches
775
776 Type: has_many
777
778 Related object: L<Koha::Schema::Result::CreatorBatch>
779
780 =cut
781
782 __PACKAGE__->has_many(
783   "creator_batches",
784   "Koha::Schema::Result::CreatorBatch",
785   { "foreign.borrower_number" => "self.borrowernumber" },
786   { cascade_copy => 0, cascade_delete => 0 },
787 );
788
789 =head2 hold_fill_targets
790
791 Type: has_many
792
793 Related object: L<Koha::Schema::Result::HoldFillTarget>
794
795 =cut
796
797 __PACKAGE__->has_many(
798   "hold_fill_targets",
799   "Koha::Schema::Result::HoldFillTarget",
800   { "foreign.borrowernumber" => "self.borrowernumber" },
801   { cascade_copy => 0, cascade_delete => 0 },
802 );
803
804 =head2 issues
805
806 Type: has_many
807
808 Related object: L<Koha::Schema::Result::Issue>
809
810 =cut
811
812 __PACKAGE__->has_many(
813   "issues",
814   "Koha::Schema::Result::Issue",
815   { "foreign.borrowernumber" => "self.borrowernumber" },
816   { cascade_copy => 0, cascade_delete => 0 },
817 );
818
819 =head2 message_queues
820
821 Type: has_many
822
823 Related object: L<Koha::Schema::Result::MessageQueue>
824
825 =cut
826
827 __PACKAGE__->has_many(
828   "message_queues",
829   "Koha::Schema::Result::MessageQueue",
830   { "foreign.borrowernumber" => "self.borrowernumber" },
831   { cascade_copy => 0, cascade_delete => 0 },
832 );
833
834 =head2 old_issues
835
836 Type: has_many
837
838 Related object: L<Koha::Schema::Result::OldIssue>
839
840 =cut
841
842 __PACKAGE__->has_many(
843   "old_issues",
844   "Koha::Schema::Result::OldIssue",
845   { "foreign.borrowernumber" => "self.borrowernumber" },
846   { cascade_copy => 0, cascade_delete => 0 },
847 );
848
849 =head2 old_reserves
850
851 Type: has_many
852
853 Related object: L<Koha::Schema::Result::OldReserve>
854
855 =cut
856
857 __PACKAGE__->has_many(
858   "old_reserves",
859   "Koha::Schema::Result::OldReserve",
860   { "foreign.borrowernumber" => "self.borrowernumber" },
861   { cascade_copy => 0, cascade_delete => 0 },
862 );
863
864 =head2 patron_list_patrons
865
866 Type: has_many
867
868 Related object: L<Koha::Schema::Result::PatronListPatron>
869
870 =cut
871
872 __PACKAGE__->has_many(
873   "patron_list_patrons",
874   "Koha::Schema::Result::PatronListPatron",
875   { "foreign.borrowernumber" => "self.borrowernumber" },
876   { cascade_copy => 0, cascade_delete => 0 },
877 );
878
879 =head2 patron_lists
880
881 Type: has_many
882
883 Related object: L<Koha::Schema::Result::PatronList>
884
885 =cut
886
887 __PACKAGE__->has_many(
888   "patron_lists",
889   "Koha::Schema::Result::PatronList",
890   { "foreign.owner" => "self.borrowernumber" },
891   { cascade_copy => 0, cascade_delete => 0 },
892 );
893
894 =head2 patroncards
895
896 Type: has_many
897
898 Related object: L<Koha::Schema::Result::Patroncard>
899
900 =cut
901
902 __PACKAGE__->has_many(
903   "patroncards",
904   "Koha::Schema::Result::Patroncard",
905   { "foreign.borrowernumber" => "self.borrowernumber" },
906   { cascade_copy => 0, cascade_delete => 0 },
907 );
908
909 =head2 patronimage
910
911 Type: might_have
912
913 Related object: L<Koha::Schema::Result::Patronimage>
914
915 =cut
916
917 __PACKAGE__->might_have(
918   "patronimage",
919   "Koha::Schema::Result::Patronimage",
920   { "foreign.borrowernumber" => "self.borrowernumber" },
921   { cascade_copy => 0, cascade_delete => 0 },
922 );
923
924 =head2 ratings
925
926 Type: has_many
927
928 Related object: L<Koha::Schema::Result::Rating>
929
930 =cut
931
932 __PACKAGE__->has_many(
933   "ratings",
934   "Koha::Schema::Result::Rating",
935   { "foreign.borrowernumber" => "self.borrowernumber" },
936   { cascade_copy => 0, cascade_delete => 0 },
937 );
938
939 =head2 reserves
940
941 Type: has_many
942
943 Related object: L<Koha::Schema::Result::Reserve>
944
945 =cut
946
947 __PACKAGE__->has_many(
948   "reserves",
949   "Koha::Schema::Result::Reserve",
950   { "foreign.borrowernumber" => "self.borrowernumber" },
951   { cascade_copy => 0, cascade_delete => 0 },
952 );
953
954 =head2 reviews
955
956 Type: has_many
957
958 Related object: L<Koha::Schema::Result::Review>
959
960 =cut
961
962 __PACKAGE__->has_many(
963   "reviews",
964   "Koha::Schema::Result::Review",
965   { "foreign.borrowernumber" => "self.borrowernumber" },
966   { cascade_copy => 0, cascade_delete => 0 },
967 );
968
969 =head2 subscriptionroutinglists
970
971 Type: has_many
972
973 Related object: L<Koha::Schema::Result::Subscriptionroutinglist>
974
975 =cut
976
977 __PACKAGE__->has_many(
978   "subscriptionroutinglists",
979   "Koha::Schema::Result::Subscriptionroutinglist",
980   { "foreign.borrowernumber" => "self.borrowernumber" },
981   { cascade_copy => 0, cascade_delete => 0 },
982 );
983
984 =head2 tags_all
985
986 Type: has_many
987
988 Related object: L<Koha::Schema::Result::TagAll>
989
990 =cut
991
992 __PACKAGE__->has_many(
993   "tags_all",
994   "Koha::Schema::Result::TagAll",
995   { "foreign.borrowernumber" => "self.borrowernumber" },
996   { cascade_copy => 0, cascade_delete => 0 },
997 );
998
999 =head2 tags_approvals
1000
1001 Type: has_many
1002
1003 Related object: L<Koha::Schema::Result::TagsApproval>
1004
1005 =cut
1006
1007 __PACKAGE__->has_many(
1008   "tags_approvals",
1009   "Koha::Schema::Result::TagsApproval",
1010   { "foreign.approved_by" => "self.borrowernumber" },
1011   { cascade_copy => 0, cascade_delete => 0 },
1012 );
1013
1014 =head2 user_permissions
1015
1016 Type: has_many
1017
1018 Related object: L<Koha::Schema::Result::UserPermission>
1019
1020 =cut
1021
1022 __PACKAGE__->has_many(
1023   "user_permissions",
1024   "Koha::Schema::Result::UserPermission",
1025   { "foreign.borrowernumber" => "self.borrowernumber" },
1026   { cascade_copy => 0, cascade_delete => 0 },
1027 );
1028
1029 =head2 virtualshelfcontents
1030
1031 Type: has_many
1032
1033 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
1034
1035 =cut
1036
1037 __PACKAGE__->has_many(
1038   "virtualshelfcontents",
1039   "Koha::Schema::Result::Virtualshelfcontent",
1040   { "foreign.borrowernumber" => "self.borrowernumber" },
1041   { cascade_copy => 0, cascade_delete => 0 },
1042 );
1043
1044 =head2 virtualshelfshares
1045
1046 Type: has_many
1047
1048 Related object: L<Koha::Schema::Result::Virtualshelfshare>
1049
1050 =cut
1051
1052 __PACKAGE__->has_many(
1053   "virtualshelfshares",
1054   "Koha::Schema::Result::Virtualshelfshare",
1055   { "foreign.borrowernumber" => "self.borrowernumber" },
1056   { cascade_copy => 0, cascade_delete => 0 },
1057 );
1058
1059 =head2 virtualshelves
1060
1061 Type: has_many
1062
1063 Related object: L<Koha::Schema::Result::Virtualshelve>
1064
1065 =cut
1066
1067 __PACKAGE__->has_many(
1068   "virtualshelves",
1069   "Koha::Schema::Result::Virtualshelve",
1070   { "foreign.owner" => "self.borrowernumber" },
1071   { cascade_copy => 0, cascade_delete => 0 },
1072 );
1073
1074 =head2 basketnoes
1075
1076 Type: many_to_many
1077
1078 Composing rels: L</aqbasketusers> -> basketno
1079
1080 =cut
1081
1082 __PACKAGE__->many_to_many("basketnoes", "aqbasketusers", "basketno");
1083
1084 =head2 budgets
1085
1086 Type: many_to_many
1087
1088 Composing rels: L</aqbudgetborrowers> -> budget
1089
1090 =cut
1091
1092 __PACKAGE__->many_to_many("budgets", "aqbudgetborrowers", "budget");
1093
1094 =head2 courses
1095
1096 Type: many_to_many
1097
1098 Composing rels: L</course_instructors> -> course
1099
1100 =cut
1101
1102 __PACKAGE__->many_to_many("courses", "course_instructors", "course");
1103
1104
1105 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
1106 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZzZiKYN4b/LuEARX4rawhA
1107
1108
1109 # You can replace this text with custom content, and it will be preserved on regeneration
1110 1;