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