195b23eb2bc24e0c2c8ce2bd608c2b927bbdfcba
[koha-ffzg.git] / Koha / Schema / Result / Deletedborrower.pm
1 use utf8;
2 package Koha::Schema::Result::Deletedborrower;
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::Deletedborrower
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<deletedborrowers>
19
20 =cut
21
22 __PACKAGE__->table("deletedborrowers");
23
24 =head1 ACCESSORS
25
26 =head2 borrowernumber
27
28   data_type: 'integer'
29   default_value: 0
30   is_nullable: 0
31
32 primary key, Koha assigned ID number for patrons/borrowers
33
34 =head2 cardnumber
35
36   data_type: 'varchar'
37   is_nullable: 1
38   size: 32
39
40 unique key, library assigned ID number for patrons/borrowers
41
42 =head2 surname
43
44   data_type: 'longtext'
45   is_nullable: 1
46
47 patron/borrower's last name (surname)
48
49 =head2 firstname
50
51   data_type: 'mediumtext'
52   is_nullable: 1
53
54 patron/borrower's first name
55
56 =head2 title
57
58   data_type: 'longtext'
59   is_nullable: 1
60
61 patron/borrower's title, for example: Mr. or Mrs.
62
63 =head2 othernames
64
65   data_type: 'longtext'
66   is_nullable: 1
67
68 any other names associated with the patron/borrower
69
70 =head2 initials
71
72   data_type: 'mediumtext'
73   is_nullable: 1
74
75 initials for your patron/borrower
76
77 =head2 streetnumber
78
79   data_type: 'tinytext'
80   is_nullable: 1
81
82 the house number for your patron/borrower's primary address
83
84 =head2 streettype
85
86   data_type: 'tinytext'
87   is_nullable: 1
88
89 the street type (Rd., Blvd, etc) for your patron/borrower's primary address
90
91 =head2 address
92
93   data_type: 'longtext'
94   is_nullable: 1
95
96 the first address line for your patron/borrower's primary address
97
98 =head2 address2
99
100   data_type: 'mediumtext'
101   is_nullable: 1
102
103 the second address line for your patron/borrower's primary address
104
105 =head2 city
106
107   data_type: 'longtext'
108   is_nullable: 1
109
110 the city or town for your patron/borrower's primary address
111
112 =head2 state
113
114   data_type: 'mediumtext'
115   is_nullable: 1
116
117 the state or province for your patron/borrower's primary address
118
119 =head2 zipcode
120
121   data_type: 'tinytext'
122   is_nullable: 1
123
124 the zip or postal code for your patron/borrower's primary address
125
126 =head2 country
127
128   data_type: 'mediumtext'
129   is_nullable: 1
130
131 the country for your patron/borrower's primary address
132
133 =head2 email
134
135   data_type: 'longtext'
136   is_nullable: 1
137
138 the primary email address for your patron/borrower's primary address
139
140 =head2 phone
141
142   data_type: 'mediumtext'
143   is_nullable: 1
144
145 the primary phone number for your patron/borrower's primary address
146
147 =head2 mobile
148
149   data_type: 'tinytext'
150   is_nullable: 1
151
152 the other phone number for your patron/borrower's primary address
153
154 =head2 fax
155
156   data_type: 'longtext'
157   is_nullable: 1
158
159 the fax number for your patron/borrower's primary address
160
161 =head2 emailpro
162
163   data_type: 'mediumtext'
164   is_nullable: 1
165
166 the secondary email addres for your patron/borrower's primary address
167
168 =head2 phonepro
169
170   data_type: 'mediumtext'
171   is_nullable: 1
172
173 the secondary phone number for your patron/borrower's primary address
174
175 =head2 B_streetnumber
176
177   accessor: 'b_streetnumber'
178   data_type: 'tinytext'
179   is_nullable: 1
180
181 the house number for your patron/borrower's alternate address
182
183 =head2 B_streettype
184
185   accessor: 'b_streettype'
186   data_type: 'tinytext'
187   is_nullable: 1
188
189 the street type (Rd., Blvd, etc) for your patron/borrower's alternate address
190
191 =head2 B_address
192
193   accessor: 'b_address'
194   data_type: 'mediumtext'
195   is_nullable: 1
196
197 the first address line for your patron/borrower's alternate address
198
199 =head2 B_address2
200
201   accessor: 'b_address2'
202   data_type: 'mediumtext'
203   is_nullable: 1
204
205 the second address line for your patron/borrower's alternate address
206
207 =head2 B_city
208
209   accessor: 'b_city'
210   data_type: 'longtext'
211   is_nullable: 1
212
213 the city or town for your patron/borrower's alternate address
214
215 =head2 B_state
216
217   accessor: 'b_state'
218   data_type: 'mediumtext'
219   is_nullable: 1
220
221 the state for your patron/borrower's alternate address
222
223 =head2 B_zipcode
224
225   accessor: 'b_zipcode'
226   data_type: 'tinytext'
227   is_nullable: 1
228
229 the zip or postal code for your patron/borrower's alternate address
230
231 =head2 B_country
232
233   accessor: 'b_country'
234   data_type: 'mediumtext'
235   is_nullable: 1
236
237 the country for your patron/borrower's alternate address
238
239 =head2 B_email
240
241   accessor: 'b_email'
242   data_type: 'mediumtext'
243   is_nullable: 1
244
245 the patron/borrower's alternate email address
246
247 =head2 B_phone
248
249   accessor: 'b_phone'
250   data_type: 'longtext'
251   is_nullable: 1
252
253 the patron/borrower's alternate phone number
254
255 =head2 dateofbirth
256
257   data_type: 'date'
258   datetime_undef_if_invalid: 1
259   is_nullable: 1
260
261 the patron/borrower's date of birth (YYYY-MM-DD)
262
263 =head2 branchcode
264
265   data_type: 'varchar'
266   default_value: (empty string)
267   is_nullable: 0
268   size: 10
269
270 foreign key from the branches table, includes the code of the patron/borrower's home branch
271
272 =head2 categorycode
273
274   data_type: 'varchar'
275   default_value: (empty string)
276   is_nullable: 0
277   size: 10
278
279 foreign key from the categories table, includes the code of the patron category
280
281 =head2 dateenrolled
282
283   data_type: 'date'
284   datetime_undef_if_invalid: 1
285   is_nullable: 1
286
287 date the patron was added to Koha (YYYY-MM-DD)
288
289 =head2 dateexpiry
290
291   data_type: 'date'
292   datetime_undef_if_invalid: 1
293   is_nullable: 1
294
295 date the patron/borrower's card is set to expire (YYYY-MM-DD)
296
297 =head2 date_renewed
298
299   data_type: 'date'
300   datetime_undef_if_invalid: 1
301   is_nullable: 1
302
303 date the patron/borrower's card was last renewed
304
305 =head2 gonenoaddress
306
307   data_type: 'tinyint'
308   is_nullable: 1
309
310 set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having an unconfirmed address
311
312 =head2 lost
313
314   data_type: 'tinyint'
315   is_nullable: 1
316
317 set to 1 for yes and 0 for no, flag to note that library marked this patron/borrower as having lost their card
318
319 =head2 debarred
320
321   data_type: 'date'
322   datetime_undef_if_invalid: 1
323   is_nullable: 1
324
325 until this date the patron can only check-in (no loans, no holds, etc.), is a fine based on days instead of money (YYYY-MM-DD)
326
327 =head2 debarredcomment
328
329   data_type: 'varchar'
330   is_nullable: 1
331   size: 255
332
333 comment on the stop of patron
334
335 =head2 contactname
336
337   data_type: 'longtext'
338   is_nullable: 1
339
340 used for children and profesionals to include surname or last name of guarantor or organization name
341
342 =head2 contactfirstname
343
344   data_type: 'mediumtext'
345   is_nullable: 1
346
347 used for children to include first name of guarantor
348
349 =head2 contacttitle
350
351   data_type: 'mediumtext'
352   is_nullable: 1
353
354 used for children to include title (Mr., Mrs., etc) of guarantor
355
356 =head2 borrowernotes
357
358   data_type: 'longtext'
359   is_nullable: 1
360
361 a note on the patron/borrower's account that is only visible in the staff interface
362
363 =head2 relationship
364
365   data_type: 'varchar'
366   is_nullable: 1
367   size: 100
368
369 used for children to include the relationship to their guarantor
370
371 =head2 sex
372
373   data_type: 'varchar'
374   is_nullable: 1
375   size: 1
376
377 patron/borrower's gender
378
379 =head2 password
380
381   data_type: 'varchar'
382   is_nullable: 1
383   size: 60
384
385 patron/borrower's encrypted password
386
387 =head2 flags
388
389   data_type: 'integer'
390   is_nullable: 1
391
392 will include a number associated with the staff member's permissions
393
394 =head2 userid
395
396   data_type: 'varchar'
397   is_nullable: 1
398   size: 75
399
400 patron/borrower's opac and/or staff interface log in
401
402 =head2 opacnote
403
404   data_type: 'longtext'
405   is_nullable: 1
406
407 a note on the patron/borrower's account that is visible in the OPAC and staff interface
408
409 =head2 contactnote
410
411   data_type: 'varchar'
412   is_nullable: 1
413   size: 255
414
415 a note related to the patron/borrower's alternate address
416
417 =head2 sort1
418
419   data_type: 'varchar'
420   is_nullable: 1
421   size: 80
422
423 a field that can be used for any information unique to the library
424
425 =head2 sort2
426
427   data_type: 'varchar'
428   is_nullable: 1
429   size: 80
430
431 a field that can be used for any information unique to the library
432
433 =head2 altcontactfirstname
434
435   data_type: 'mediumtext'
436   is_nullable: 1
437
438 first name of alternate contact for the patron/borrower
439
440 =head2 altcontactsurname
441
442   data_type: 'mediumtext'
443   is_nullable: 1
444
445 surname or last name of the alternate contact for the patron/borrower
446
447 =head2 altcontactaddress1
448
449   data_type: 'mediumtext'
450   is_nullable: 1
451
452 the first address line for the alternate contact for the patron/borrower
453
454 =head2 altcontactaddress2
455
456   data_type: 'mediumtext'
457   is_nullable: 1
458
459 the second address line for the alternate contact for the patron/borrower
460
461 =head2 altcontactaddress3
462
463   data_type: 'mediumtext'
464   is_nullable: 1
465
466 the city for the alternate contact for the patron/borrower
467
468 =head2 altcontactstate
469
470   data_type: 'mediumtext'
471   is_nullable: 1
472
473 the state for the alternate contact for the patron/borrower
474
475 =head2 altcontactzipcode
476
477   data_type: 'mediumtext'
478   is_nullable: 1
479
480 the zipcode for the alternate contact for the patron/borrower
481
482 =head2 altcontactcountry
483
484   data_type: 'mediumtext'
485   is_nullable: 1
486
487 the country for the alternate contact for the patron/borrower
488
489 =head2 altcontactphone
490
491   data_type: 'mediumtext'
492   is_nullable: 1
493
494 the phone number for the alternate contact for the patron/borrower
495
496 =head2 smsalertnumber
497
498   data_type: 'varchar'
499   is_nullable: 1
500   size: 50
501
502 the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
503
504 =head2 sms_provider_id
505
506   data_type: 'integer'
507   is_nullable: 1
508
509 the provider of the mobile phone number defined in smsalertnumber
510
511 =head2 privacy
512
513   data_type: 'integer'
514   default_value: 1
515   is_nullable: 0
516
517 patron/borrower's privacy settings related to their checkout history  KEY `borrowernumber` (`borrowernumber`),
518
519 =head2 privacy_guarantor_fines
520
521   data_type: 'tinyint'
522   default_value: 0
523   is_nullable: 0
524
525 controls if relatives can see this patron's fines
526
527 =head2 privacy_guarantor_checkouts
528
529   data_type: 'tinyint'
530   default_value: 0
531   is_nullable: 0
532
533 controls if relatives can see this patron's checkouts
534
535 =head2 checkprevcheckout
536
537   data_type: 'varchar'
538   default_value: 'inherit'
539   is_nullable: 0
540   size: 7
541
542 produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
543
544 =head2 updated_on
545
546   data_type: 'timestamp'
547   datetime_undef_if_invalid: 1
548   default_value: current_timestamp
549   is_nullable: 0
550
551 time of last change could be useful for synchronization with external systems (among others)
552
553 =head2 lastseen
554
555   data_type: 'datetime'
556   datetime_undef_if_invalid: 1
557   is_nullable: 1
558
559 last time a patron has been seen (connected at the OPAC or staff interface)
560
561 =head2 lang
562
563   data_type: 'varchar'
564   default_value: 'default'
565   is_nullable: 0
566   size: 25
567
568 lang to use to send notices to this patron
569
570 =head2 login_attempts
571
572   data_type: 'integer'
573   default_value: 0
574   is_nullable: 0
575
576 number of failed login attemps
577
578 =head2 overdrive_auth_token
579
580   data_type: 'mediumtext'
581   is_nullable: 1
582
583 persist OverDrive auth token
584
585 =head2 anonymized
586
587   data_type: 'tinyint'
588   default_value: 0
589   is_nullable: 0
590
591 flag for data anonymization
592
593 =head2 autorenew_checkouts
594
595   data_type: 'tinyint'
596   default_value: 1
597   is_nullable: 0
598
599 flag for allowing auto-renewal
600
601 =cut
602
603 __PACKAGE__->add_columns(
604   "borrowernumber",
605   { data_type => "integer", default_value => 0, is_nullable => 0 },
606   "cardnumber",
607   { data_type => "varchar", is_nullable => 1, size => 32 },
608   "surname",
609   { data_type => "longtext", is_nullable => 1 },
610   "firstname",
611   { data_type => "mediumtext", is_nullable => 1 },
612   "title",
613   { data_type => "longtext", is_nullable => 1 },
614   "othernames",
615   { data_type => "longtext", is_nullable => 1 },
616   "initials",
617   { data_type => "mediumtext", is_nullable => 1 },
618   "streetnumber",
619   { data_type => "tinytext", is_nullable => 1 },
620   "streettype",
621   { data_type => "tinytext", is_nullable => 1 },
622   "address",
623   { data_type => "longtext", is_nullable => 1 },
624   "address2",
625   { data_type => "mediumtext", is_nullable => 1 },
626   "city",
627   { data_type => "longtext", is_nullable => 1 },
628   "state",
629   { data_type => "mediumtext", is_nullable => 1 },
630   "zipcode",
631   { data_type => "tinytext", is_nullable => 1 },
632   "country",
633   { data_type => "mediumtext", is_nullable => 1 },
634   "email",
635   { data_type => "longtext", is_nullable => 1 },
636   "phone",
637   { data_type => "mediumtext", is_nullable => 1 },
638   "mobile",
639   { data_type => "tinytext", is_nullable => 1 },
640   "fax",
641   { data_type => "longtext", is_nullable => 1 },
642   "emailpro",
643   { data_type => "mediumtext", is_nullable => 1 },
644   "phonepro",
645   { data_type => "mediumtext", is_nullable => 1 },
646   "B_streetnumber",
647   { accessor => "b_streetnumber", data_type => "tinytext", is_nullable => 1 },
648   "B_streettype",
649   { accessor => "b_streettype", data_type => "tinytext", is_nullable => 1 },
650   "B_address",
651   { accessor => "b_address", data_type => "mediumtext", is_nullable => 1 },
652   "B_address2",
653   { accessor => "b_address2", data_type => "mediumtext", is_nullable => 1 },
654   "B_city",
655   { accessor => "b_city", data_type => "longtext", is_nullable => 1 },
656   "B_state",
657   { accessor => "b_state", data_type => "mediumtext", is_nullable => 1 },
658   "B_zipcode",
659   { accessor => "b_zipcode", data_type => "tinytext", is_nullable => 1 },
660   "B_country",
661   { accessor => "b_country", data_type => "mediumtext", is_nullable => 1 },
662   "B_email",
663   { accessor => "b_email", data_type => "mediumtext", is_nullable => 1 },
664   "B_phone",
665   { accessor => "b_phone", data_type => "longtext", is_nullable => 1 },
666   "dateofbirth",
667   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
668   "branchcode",
669   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
670   "categorycode",
671   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
672   "dateenrolled",
673   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
674   "dateexpiry",
675   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
676   "date_renewed",
677   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
678   "gonenoaddress",
679   { data_type => "tinyint", is_nullable => 1 },
680   "lost",
681   { data_type => "tinyint", is_nullable => 1 },
682   "debarred",
683   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
684   "debarredcomment",
685   { data_type => "varchar", is_nullable => 1, size => 255 },
686   "contactname",
687   { data_type => "longtext", is_nullable => 1 },
688   "contactfirstname",
689   { data_type => "mediumtext", is_nullable => 1 },
690   "contacttitle",
691   { data_type => "mediumtext", is_nullable => 1 },
692   "borrowernotes",
693   { data_type => "longtext", is_nullable => 1 },
694   "relationship",
695   { data_type => "varchar", is_nullable => 1, size => 100 },
696   "sex",
697   { data_type => "varchar", is_nullable => 1, size => 1 },
698   "password",
699   { data_type => "varchar", is_nullable => 1, size => 60 },
700   "flags",
701   { data_type => "integer", is_nullable => 1 },
702   "userid",
703   { data_type => "varchar", is_nullable => 1, size => 75 },
704   "opacnote",
705   { data_type => "longtext", is_nullable => 1 },
706   "contactnote",
707   { data_type => "varchar", is_nullable => 1, size => 255 },
708   "sort1",
709   { data_type => "varchar", is_nullable => 1, size => 80 },
710   "sort2",
711   { data_type => "varchar", is_nullable => 1, size => 80 },
712   "altcontactfirstname",
713   { data_type => "mediumtext", is_nullable => 1 },
714   "altcontactsurname",
715   { data_type => "mediumtext", is_nullable => 1 },
716   "altcontactaddress1",
717   { data_type => "mediumtext", is_nullable => 1 },
718   "altcontactaddress2",
719   { data_type => "mediumtext", is_nullable => 1 },
720   "altcontactaddress3",
721   { data_type => "mediumtext", is_nullable => 1 },
722   "altcontactstate",
723   { data_type => "mediumtext", is_nullable => 1 },
724   "altcontactzipcode",
725   { data_type => "mediumtext", is_nullable => 1 },
726   "altcontactcountry",
727   { data_type => "mediumtext", is_nullable => 1 },
728   "altcontactphone",
729   { data_type => "mediumtext", is_nullable => 1 },
730   "smsalertnumber",
731   { data_type => "varchar", is_nullable => 1, size => 50 },
732   "sms_provider_id",
733   { data_type => "integer", is_nullable => 1 },
734   "privacy",
735   { data_type => "integer", default_value => 1, is_nullable => 0 },
736   "privacy_guarantor_fines",
737   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
738   "privacy_guarantor_checkouts",
739   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
740   "checkprevcheckout",
741   {
742     data_type => "varchar",
743     default_value => "inherit",
744     is_nullable => 0,
745     size => 7,
746   },
747   "updated_on",
748   {
749     data_type => "timestamp",
750     datetime_undef_if_invalid => 1,
751     default_value => \"current_timestamp",
752     is_nullable => 0,
753   },
754   "lastseen",
755   {
756     data_type => "datetime",
757     datetime_undef_if_invalid => 1,
758     is_nullable => 1,
759   },
760   "lang",
761   {
762     data_type => "varchar",
763     default_value => "default",
764     is_nullable => 0,
765     size => 25,
766   },
767   "login_attempts",
768   { data_type => "integer", default_value => 0, is_nullable => 0 },
769   "overdrive_auth_token",
770   { data_type => "mediumtext", is_nullable => 1 },
771   "anonymized",
772   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
773   "autorenew_checkouts",
774   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
775 );
776
777
778 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-06-07 05:28:04
779 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/9VjUuilKGDwV/pLlf/4ew
780
781 __PACKAGE__->add_columns(
782     '+anonymized'    => { is_boolean => 1 },
783     '+lost'          => { is_boolean => 1 },
784     '+gonenoaddress' => { is_boolean => 1 },
785     '+privacy_guarantor_fines' => { is_boolean => 1 },
786     '+autorenew_checkouts' => { is_boolean => 1 }
787 );
788
789 sub koha_objects_class {
790     'Koha::Old::Patrons';
791 }
792 sub koha_object_class {
793     'Koha::Old::Patron';
794 }
795
796 1;