Bug 24986: DBIC Schema files + fix of bug 23081 backport
[koha.git] / Koha / Schema / Result / Deletedborrower.pm
blob5518c3b0da2530ae4cd0655260457394f1611dfc
1 use utf8;
2 package Koha::Schema::Result::Deletedborrower;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Deletedborrower
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<deletedborrowers>
20 =cut
22 __PACKAGE__->table("deletedborrowers");
24 =head1 ACCESSORS
26 =head2 borrowernumber
28 data_type: 'integer'
29 default_value: 0
30 is_nullable: 0
32 =head2 cardnumber
34 data_type: 'varchar'
35 is_nullable: 1
36 size: 32
38 =head2 surname
40 data_type: 'longtext'
41 is_nullable: 1
43 =head2 firstname
45 data_type: 'mediumtext'
46 is_nullable: 1
48 =head2 title
50 data_type: 'longtext'
51 is_nullable: 1
53 =head2 othernames
55 data_type: 'longtext'
56 is_nullable: 1
58 =head2 initials
60 data_type: 'mediumtext'
61 is_nullable: 1
63 =head2 streetnumber
65 data_type: 'tinytext'
66 is_nullable: 1
68 =head2 streettype
70 data_type: 'tinytext'
71 is_nullable: 1
73 =head2 address
75 data_type: 'longtext'
76 is_nullable: 1
78 =head2 address2
80 data_type: 'mediumtext'
81 is_nullable: 1
83 =head2 city
85 data_type: 'longtext'
86 is_nullable: 1
88 =head2 state
90 data_type: 'mediumtext'
91 is_nullable: 1
93 =head2 zipcode
95 data_type: 'tinytext'
96 is_nullable: 1
98 =head2 country
100 data_type: 'mediumtext'
101 is_nullable: 1
103 =head2 email
105 data_type: 'longtext'
106 is_nullable: 1
108 =head2 phone
110 data_type: 'mediumtext'
111 is_nullable: 1
113 =head2 mobile
115 data_type: 'tinytext'
116 is_nullable: 1
118 =head2 fax
120 data_type: 'longtext'
121 is_nullable: 1
123 =head2 emailpro
125 data_type: 'mediumtext'
126 is_nullable: 1
128 =head2 phonepro
130 data_type: 'mediumtext'
131 is_nullable: 1
133 =head2 B_streetnumber
135 accessor: 'b_streetnumber'
136 data_type: 'tinytext'
137 is_nullable: 1
139 =head2 B_streettype
141 accessor: 'b_streettype'
142 data_type: 'tinytext'
143 is_nullable: 1
145 =head2 B_address
147 accessor: 'b_address'
148 data_type: 'mediumtext'
149 is_nullable: 1
151 =head2 B_address2
153 accessor: 'b_address2'
154 data_type: 'mediumtext'
155 is_nullable: 1
157 =head2 B_city
159 accessor: 'b_city'
160 data_type: 'longtext'
161 is_nullable: 1
163 =head2 B_state
165 accessor: 'b_state'
166 data_type: 'mediumtext'
167 is_nullable: 1
169 =head2 B_zipcode
171 accessor: 'b_zipcode'
172 data_type: 'tinytext'
173 is_nullable: 1
175 =head2 B_country
177 accessor: 'b_country'
178 data_type: 'mediumtext'
179 is_nullable: 1
181 =head2 B_email
183 accessor: 'b_email'
184 data_type: 'mediumtext'
185 is_nullable: 1
187 =head2 B_phone
189 accessor: 'b_phone'
190 data_type: 'longtext'
191 is_nullable: 1
193 =head2 dateofbirth
195 data_type: 'date'
196 datetime_undef_if_invalid: 1
197 is_nullable: 1
199 =head2 branchcode
201 data_type: 'varchar'
202 default_value: (empty string)
203 is_nullable: 0
204 size: 10
206 =head2 categorycode
208 data_type: 'varchar'
209 default_value: (empty string)
210 is_nullable: 0
211 size: 10
213 =head2 dateenrolled
215 data_type: 'date'
216 datetime_undef_if_invalid: 1
217 is_nullable: 1
219 =head2 dateexpiry
221 data_type: 'date'
222 datetime_undef_if_invalid: 1
223 is_nullable: 1
225 =head2 date_renewed
227 data_type: 'date'
228 datetime_undef_if_invalid: 1
229 is_nullable: 1
231 =head2 gonenoaddress
233 data_type: 'tinyint'
234 is_nullable: 1
236 =head2 lost
238 data_type: 'tinyint'
239 is_nullable: 1
241 =head2 debarred
243 data_type: 'date'
244 datetime_undef_if_invalid: 1
245 is_nullable: 1
247 =head2 debarredcomment
249 data_type: 'varchar'
250 is_nullable: 1
251 size: 255
253 =head2 contactname
255 data_type: 'longtext'
256 is_nullable: 1
258 =head2 contactfirstname
260 data_type: 'mediumtext'
261 is_nullable: 1
263 =head2 contacttitle
265 data_type: 'mediumtext'
266 is_nullable: 1
268 =head2 guarantorid
270 data_type: 'integer'
271 is_nullable: 1
273 =head2 borrowernotes
275 data_type: 'longtext'
276 is_nullable: 1
278 =head2 relationship
280 data_type: 'varchar'
281 is_nullable: 1
282 size: 100
284 =head2 sex
286 data_type: 'varchar'
287 is_nullable: 1
288 size: 1
290 =head2 password
292 data_type: 'varchar'
293 is_nullable: 1
294 size: 60
296 =head2 flags
298 data_type: 'integer'
299 is_nullable: 1
301 =head2 userid
303 data_type: 'varchar'
304 is_nullable: 1
305 size: 75
307 =head2 opacnote
309 data_type: 'longtext'
310 is_nullable: 1
312 =head2 contactnote
314 data_type: 'varchar'
315 is_nullable: 1
316 size: 255
318 =head2 sort1
320 data_type: 'varchar'
321 is_nullable: 1
322 size: 80
324 =head2 sort2
326 data_type: 'varchar'
327 is_nullable: 1
328 size: 80
330 =head2 altcontactfirstname
332 data_type: 'mediumtext'
333 is_nullable: 1
335 =head2 altcontactsurname
337 data_type: 'mediumtext'
338 is_nullable: 1
340 =head2 altcontactaddress1
342 data_type: 'mediumtext'
343 is_nullable: 1
345 =head2 altcontactaddress2
347 data_type: 'mediumtext'
348 is_nullable: 1
350 =head2 altcontactaddress3
352 data_type: 'mediumtext'
353 is_nullable: 1
355 =head2 altcontactstate
357 data_type: 'mediumtext'
358 is_nullable: 1
360 =head2 altcontactzipcode
362 data_type: 'mediumtext'
363 is_nullable: 1
365 =head2 altcontactcountry
367 data_type: 'mediumtext'
368 is_nullable: 1
370 =head2 altcontactphone
372 data_type: 'mediumtext'
373 is_nullable: 1
375 =head2 smsalertnumber
377 data_type: 'varchar'
378 is_nullable: 1
379 size: 50
381 =head2 sms_provider_id
383 data_type: 'integer'
384 is_nullable: 1
386 =head2 privacy
388 data_type: 'integer'
389 default_value: 1
390 is_nullable: 0
392 =head2 privacy_guarantor_checkouts
394 data_type: 'tinyint'
395 default_value: 0
396 is_nullable: 0
398 =head2 checkprevcheckout
400 data_type: 'varchar'
401 default_value: 'inherit'
402 is_nullable: 0
403 size: 7
405 =head2 updated_on
407 data_type: 'timestamp'
408 datetime_undef_if_invalid: 1
409 default_value: current_timestamp
410 is_nullable: 0
412 =head2 lastseen
414 data_type: 'datetime'
415 datetime_undef_if_invalid: 1
416 is_nullable: 1
418 =head2 lang
420 data_type: 'varchar'
421 default_value: 'default'
422 is_nullable: 0
423 size: 25
425 =head2 login_attempts
427 data_type: 'integer'
428 default_value: 0
429 is_nullable: 1
431 =head2 overdrive_auth_token
433 data_type: 'mediumtext'
434 is_nullable: 1
436 =head2 anonymized
438 data_type: 'tinyint'
439 default_value: 0
440 is_nullable: 0
442 =cut
444 __PACKAGE__->add_columns(
445 "borrowernumber",
446 { data_type => "integer", default_value => 0, is_nullable => 0 },
447 "cardnumber",
448 { data_type => "varchar", is_nullable => 1, size => 32 },
449 "surname",
450 { data_type => "longtext", is_nullable => 1 },
451 "firstname",
452 { data_type => "mediumtext", is_nullable => 1 },
453 "title",
454 { data_type => "longtext", is_nullable => 1 },
455 "othernames",
456 { data_type => "longtext", is_nullable => 1 },
457 "initials",
458 { data_type => "mediumtext", is_nullable => 1 },
459 "streetnumber",
460 { data_type => "tinytext", is_nullable => 1 },
461 "streettype",
462 { data_type => "tinytext", is_nullable => 1 },
463 "address",
464 { data_type => "longtext", is_nullable => 1 },
465 "address2",
466 { data_type => "mediumtext", is_nullable => 1 },
467 "city",
468 { data_type => "longtext", is_nullable => 1 },
469 "state",
470 { data_type => "mediumtext", is_nullable => 1 },
471 "zipcode",
472 { data_type => "tinytext", is_nullable => 1 },
473 "country",
474 { data_type => "mediumtext", is_nullable => 1 },
475 "email",
476 { data_type => "longtext", is_nullable => 1 },
477 "phone",
478 { data_type => "mediumtext", is_nullable => 1 },
479 "mobile",
480 { data_type => "tinytext", is_nullable => 1 },
481 "fax",
482 { data_type => "longtext", is_nullable => 1 },
483 "emailpro",
484 { data_type => "mediumtext", is_nullable => 1 },
485 "phonepro",
486 { data_type => "mediumtext", is_nullable => 1 },
487 "B_streetnumber",
488 { accessor => "b_streetnumber", data_type => "tinytext", is_nullable => 1 },
489 "B_streettype",
490 { accessor => "b_streettype", data_type => "tinytext", is_nullable => 1 },
491 "B_address",
492 { accessor => "b_address", data_type => "mediumtext", is_nullable => 1 },
493 "B_address2",
494 { accessor => "b_address2", data_type => "mediumtext", is_nullable => 1 },
495 "B_city",
496 { accessor => "b_city", data_type => "longtext", is_nullable => 1 },
497 "B_state",
498 { accessor => "b_state", data_type => "mediumtext", is_nullable => 1 },
499 "B_zipcode",
500 { accessor => "b_zipcode", data_type => "tinytext", is_nullable => 1 },
501 "B_country",
502 { accessor => "b_country", data_type => "mediumtext", is_nullable => 1 },
503 "B_email",
504 { accessor => "b_email", data_type => "mediumtext", is_nullable => 1 },
505 "B_phone",
506 { accessor => "b_phone", data_type => "longtext", is_nullable => 1 },
507 "dateofbirth",
508 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
509 "branchcode",
510 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
511 "categorycode",
512 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
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 "date_renewed",
518 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
519 "gonenoaddress",
520 { data_type => "tinyint", is_nullable => 1 },
521 "lost",
522 { data_type => "tinyint", is_nullable => 1 },
523 "debarred",
524 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
525 "debarredcomment",
526 { data_type => "varchar", is_nullable => 1, size => 255 },
527 "contactname",
528 { data_type => "longtext", is_nullable => 1 },
529 "contactfirstname",
530 { data_type => "mediumtext", is_nullable => 1 },
531 "contacttitle",
532 { data_type => "mediumtext", is_nullable => 1 },
533 "guarantorid",
534 { data_type => "integer", is_nullable => 1 },
535 "borrowernotes",
536 { data_type => "longtext", is_nullable => 1 },
537 "relationship",
538 { data_type => "varchar", is_nullable => 1, size => 100 },
539 "sex",
540 { data_type => "varchar", is_nullable => 1, size => 1 },
541 "password",
542 { data_type => "varchar", is_nullable => 1, size => 60 },
543 "flags",
544 { data_type => "integer", is_nullable => 1 },
545 "userid",
546 { data_type => "varchar", is_nullable => 1, size => 75 },
547 "opacnote",
548 { data_type => "longtext", is_nullable => 1 },
549 "contactnote",
550 { data_type => "varchar", is_nullable => 1, size => 255 },
551 "sort1",
552 { data_type => "varchar", is_nullable => 1, size => 80 },
553 "sort2",
554 { data_type => "varchar", is_nullable => 1, size => 80 },
555 "altcontactfirstname",
556 { data_type => "mediumtext", is_nullable => 1 },
557 "altcontactsurname",
558 { data_type => "mediumtext", is_nullable => 1 },
559 "altcontactaddress1",
560 { data_type => "mediumtext", is_nullable => 1 },
561 "altcontactaddress2",
562 { data_type => "mediumtext", is_nullable => 1 },
563 "altcontactaddress3",
564 { data_type => "mediumtext", is_nullable => 1 },
565 "altcontactstate",
566 { data_type => "mediumtext", is_nullable => 1 },
567 "altcontactzipcode",
568 { data_type => "mediumtext", is_nullable => 1 },
569 "altcontactcountry",
570 { data_type => "mediumtext", is_nullable => 1 },
571 "altcontactphone",
572 { data_type => "mediumtext", is_nullable => 1 },
573 "smsalertnumber",
574 { data_type => "varchar", is_nullable => 1, size => 50 },
575 "sms_provider_id",
576 { data_type => "integer", is_nullable => 1 },
577 "privacy",
578 { data_type => "integer", default_value => 1, is_nullable => 0 },
579 "privacy_guarantor_checkouts",
580 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
581 "checkprevcheckout",
583 data_type => "varchar",
584 default_value => "inherit",
585 is_nullable => 0,
586 size => 7,
588 "updated_on",
590 data_type => "timestamp",
591 datetime_undef_if_invalid => 1,
592 default_value => \"current_timestamp",
593 is_nullable => 0,
595 "lastseen",
597 data_type => "datetime",
598 datetime_undef_if_invalid => 1,
599 is_nullable => 1,
601 "lang",
603 data_type => "varchar",
604 default_value => "default",
605 is_nullable => 0,
606 size => 25,
608 "login_attempts",
609 { data_type => "integer", default_value => 0, is_nullable => 1 },
610 "overdrive_auth_token",
611 { data_type => "mediumtext", is_nullable => 1 },
612 "anonymized",
613 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
617 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-07-22 19:19:25
618 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:29hi9QI9+xTuI+pl16KhgQ
621 # You can replace this text with custom code or comments, and it will be preserved on regeneration