Bug 13178: DBIC Schema changes
[koha.git] / Koha / Schema / Result / Deletedborrower.pm
blobe4df081353e924ec77f29de25425853b35311c7c
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: 'mediumtext'
41 is_nullable: 0
43 =head2 firstname
45 data_type: 'text'
46 is_nullable: 1
48 =head2 title
50 data_type: 'mediumtext'
51 is_nullable: 1
53 =head2 othernames
55 data_type: 'mediumtext'
56 is_nullable: 1
58 =head2 initials
60 data_type: 'text'
61 is_nullable: 1
63 =head2 streetnumber
65 data_type: 'varchar'
66 is_nullable: 1
67 size: 10
69 =head2 streettype
71 data_type: 'varchar'
72 is_nullable: 1
73 size: 50
75 =head2 address
77 data_type: 'mediumtext'
78 is_nullable: 0
80 =head2 address2
82 data_type: 'text'
83 is_nullable: 1
85 =head2 city
87 data_type: 'mediumtext'
88 is_nullable: 0
90 =head2 state
92 data_type: 'text'
93 is_nullable: 1
95 =head2 zipcode
97 data_type: 'varchar'
98 is_nullable: 1
99 size: 25
101 =head2 country
103 data_type: 'text'
104 is_nullable: 1
106 =head2 email
108 data_type: 'mediumtext'
109 is_nullable: 1
111 =head2 phone
113 data_type: 'text'
114 is_nullable: 1
116 =head2 mobile
118 data_type: 'varchar'
119 is_nullable: 1
120 size: 50
122 =head2 fax
124 data_type: 'mediumtext'
125 is_nullable: 1
127 =head2 emailpro
129 data_type: 'text'
130 is_nullable: 1
132 =head2 phonepro
134 data_type: 'text'
135 is_nullable: 1
137 =head2 B_streetnumber
139 accessor: 'b_streetnumber'
140 data_type: 'varchar'
141 is_nullable: 1
142 size: 10
144 =head2 B_streettype
146 accessor: 'b_streettype'
147 data_type: 'varchar'
148 is_nullable: 1
149 size: 50
151 =head2 B_address
153 accessor: 'b_address'
154 data_type: 'varchar'
155 is_nullable: 1
156 size: 100
158 =head2 B_address2
160 accessor: 'b_address2'
161 data_type: 'text'
162 is_nullable: 1
164 =head2 B_city
166 accessor: 'b_city'
167 data_type: 'mediumtext'
168 is_nullable: 1
170 =head2 B_state
172 accessor: 'b_state'
173 data_type: 'text'
174 is_nullable: 1
176 =head2 B_zipcode
178 accessor: 'b_zipcode'
179 data_type: 'varchar'
180 is_nullable: 1
181 size: 25
183 =head2 B_country
185 accessor: 'b_country'
186 data_type: 'text'
187 is_nullable: 1
189 =head2 B_email
191 accessor: 'b_email'
192 data_type: 'text'
193 is_nullable: 1
195 =head2 B_phone
197 accessor: 'b_phone'
198 data_type: 'mediumtext'
199 is_nullable: 1
201 =head2 dateofbirth
203 data_type: 'date'
204 datetime_undef_if_invalid: 1
205 is_nullable: 1
207 =head2 branchcode
209 data_type: 'varchar'
210 default_value: (empty string)
211 is_nullable: 0
212 size: 10
214 =head2 categorycode
216 data_type: 'varchar'
217 default_value: (empty string)
218 is_nullable: 0
219 size: 10
221 =head2 dateenrolled
223 data_type: 'date'
224 datetime_undef_if_invalid: 1
225 is_nullable: 1
227 =head2 dateexpiry
229 data_type: 'date'
230 datetime_undef_if_invalid: 1
231 is_nullable: 1
233 =head2 date_renewed
235 data_type: 'date'
236 datetime_undef_if_invalid: 1
237 is_nullable: 1
239 =head2 gonenoaddress
241 data_type: 'tinyint'
242 is_nullable: 1
244 =head2 lost
246 data_type: 'tinyint'
247 is_nullable: 1
249 =head2 debarred
251 data_type: 'date'
252 datetime_undef_if_invalid: 1
253 is_nullable: 1
255 =head2 debarredcomment
257 data_type: 'varchar'
258 is_nullable: 1
259 size: 255
261 =head2 contactname
263 data_type: 'mediumtext'
264 is_nullable: 1
266 =head2 contactfirstname
268 data_type: 'text'
269 is_nullable: 1
271 =head2 contacttitle
273 data_type: 'text'
274 is_nullable: 1
276 =head2 guarantorid
278 data_type: 'integer'
279 is_nullable: 1
281 =head2 borrowernotes
283 data_type: 'mediumtext'
284 is_nullable: 1
286 =head2 relationship
288 data_type: 'varchar'
289 is_nullable: 1
290 size: 100
292 =head2 sex
294 data_type: 'varchar'
295 is_nullable: 1
296 size: 1
298 =head2 password
300 data_type: 'varchar'
301 is_nullable: 1
302 size: 60
304 =head2 flags
306 data_type: 'integer'
307 is_nullable: 1
309 =head2 userid
311 data_type: 'varchar'
312 is_nullable: 1
313 size: 75
315 =head2 opacnote
317 data_type: 'mediumtext'
318 is_nullable: 1
320 =head2 contactnote
322 data_type: 'varchar'
323 is_nullable: 1
324 size: 255
326 =head2 sort1
328 data_type: 'varchar'
329 is_nullable: 1
330 size: 80
332 =head2 sort2
334 data_type: 'varchar'
335 is_nullable: 1
336 size: 80
338 =head2 altcontactfirstname
340 data_type: 'varchar'
341 is_nullable: 1
342 size: 255
344 =head2 altcontactsurname
346 data_type: 'varchar'
347 is_nullable: 1
348 size: 255
350 =head2 altcontactaddress1
352 data_type: 'varchar'
353 is_nullable: 1
354 size: 255
356 =head2 altcontactaddress2
358 data_type: 'varchar'
359 is_nullable: 1
360 size: 255
362 =head2 altcontactaddress3
364 data_type: 'varchar'
365 is_nullable: 1
366 size: 255
368 =head2 altcontactstate
370 data_type: 'text'
371 is_nullable: 1
373 =head2 altcontactzipcode
375 data_type: 'varchar'
376 is_nullable: 1
377 size: 50
379 =head2 altcontactcountry
381 data_type: 'text'
382 is_nullable: 1
384 =head2 altcontactphone
386 data_type: 'varchar'
387 is_nullable: 1
388 size: 50
390 =head2 smsalertnumber
392 data_type: 'varchar'
393 is_nullable: 1
394 size: 50
396 =head2 sms_provider_id
398 data_type: 'integer'
399 is_nullable: 1
401 =head2 privacy
403 data_type: 'integer'
404 default_value: 1
405 is_nullable: 0
407 =head2 privacy_guarantor_checkouts
409 data_type: 'tinyint'
410 default_value: 0
411 is_nullable: 0
413 =head2 checkprevcheckout
415 data_type: 'varchar'
416 default_value: 'inherit'
417 is_nullable: 0
418 size: 7
420 =head2 updated_on
422 data_type: 'timestamp'
423 datetime_undef_if_invalid: 1
424 default_value: current_timestamp
425 is_nullable: 0
427 =head2 lastseen
429 data_type: 'datetime'
430 datetime_undef_if_invalid: 1
431 is_nullable: 1
433 =head2 lang
435 data_type: 'varchar'
436 default_value: 'default'
437 is_nullable: 0
438 size: 25
440 =head2 login_attempts
442 data_type: 'integer'
443 default_value: 0
444 is_nullable: 1
446 =head2 overdrive_auth_token
448 data_type: 'text'
449 is_nullable: 1
451 =cut
453 __PACKAGE__->add_columns(
454 "borrowernumber",
455 { data_type => "integer", default_value => 0, is_nullable => 0 },
456 "cardnumber",
457 { data_type => "varchar", is_nullable => 1, size => 32 },
458 "surname",
459 { data_type => "mediumtext", is_nullable => 0 },
460 "firstname",
461 { data_type => "text", is_nullable => 1 },
462 "title",
463 { data_type => "mediumtext", is_nullable => 1 },
464 "othernames",
465 { data_type => "mediumtext", is_nullable => 1 },
466 "initials",
467 { data_type => "text", is_nullable => 1 },
468 "streetnumber",
469 { data_type => "varchar", is_nullable => 1, size => 10 },
470 "streettype",
471 { data_type => "varchar", is_nullable => 1, size => 50 },
472 "address",
473 { data_type => "mediumtext", is_nullable => 0 },
474 "address2",
475 { data_type => "text", is_nullable => 1 },
476 "city",
477 { data_type => "mediumtext", is_nullable => 0 },
478 "state",
479 { data_type => "text", is_nullable => 1 },
480 "zipcode",
481 { data_type => "varchar", is_nullable => 1, size => 25 },
482 "country",
483 { data_type => "text", is_nullable => 1 },
484 "email",
485 { data_type => "mediumtext", is_nullable => 1 },
486 "phone",
487 { data_type => "text", is_nullable => 1 },
488 "mobile",
489 { data_type => "varchar", is_nullable => 1, size => 50 },
490 "fax",
491 { data_type => "mediumtext", is_nullable => 1 },
492 "emailpro",
493 { data_type => "text", is_nullable => 1 },
494 "phonepro",
495 { data_type => "text", is_nullable => 1 },
496 "B_streetnumber",
498 accessor => "b_streetnumber",
499 data_type => "varchar",
500 is_nullable => 1,
501 size => 10,
503 "B_streettype",
505 accessor => "b_streettype",
506 data_type => "varchar",
507 is_nullable => 1,
508 size => 50,
510 "B_address",
512 accessor => "b_address",
513 data_type => "varchar",
514 is_nullable => 1,
515 size => 100,
517 "B_address2",
518 { accessor => "b_address2", data_type => "text", is_nullable => 1 },
519 "B_city",
520 { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
521 "B_state",
522 { accessor => "b_state", data_type => "text", is_nullable => 1 },
523 "B_zipcode",
525 accessor => "b_zipcode",
526 data_type => "varchar",
527 is_nullable => 1,
528 size => 25,
530 "B_country",
531 { accessor => "b_country", data_type => "text", is_nullable => 1 },
532 "B_email",
533 { accessor => "b_email", data_type => "text", is_nullable => 1 },
534 "B_phone",
535 { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
536 "dateofbirth",
537 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
538 "branchcode",
539 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
540 "categorycode",
541 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
542 "dateenrolled",
543 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
544 "dateexpiry",
545 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
546 "date_renewed",
547 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
548 "gonenoaddress",
549 { data_type => "tinyint", is_nullable => 1 },
550 "lost",
551 { data_type => "tinyint", is_nullable => 1 },
552 "debarred",
553 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
554 "debarredcomment",
555 { data_type => "varchar", is_nullable => 1, size => 255 },
556 "contactname",
557 { data_type => "mediumtext", is_nullable => 1 },
558 "contactfirstname",
559 { data_type => "text", is_nullable => 1 },
560 "contacttitle",
561 { data_type => "text", is_nullable => 1 },
562 "guarantorid",
563 { data_type => "integer", is_nullable => 1 },
564 "borrowernotes",
565 { data_type => "mediumtext", is_nullable => 1 },
566 "relationship",
567 { data_type => "varchar", is_nullable => 1, size => 100 },
568 "sex",
569 { data_type => "varchar", is_nullable => 1, size => 1 },
570 "password",
571 { data_type => "varchar", is_nullable => 1, size => 60 },
572 "flags",
573 { data_type => "integer", is_nullable => 1 },
574 "userid",
575 { data_type => "varchar", is_nullable => 1, size => 75 },
576 "opacnote",
577 { data_type => "mediumtext", is_nullable => 1 },
578 "contactnote",
579 { data_type => "varchar", is_nullable => 1, size => 255 },
580 "sort1",
581 { data_type => "varchar", is_nullable => 1, size => 80 },
582 "sort2",
583 { data_type => "varchar", is_nullable => 1, size => 80 },
584 "altcontactfirstname",
585 { data_type => "varchar", is_nullable => 1, size => 255 },
586 "altcontactsurname",
587 { data_type => "varchar", is_nullable => 1, size => 255 },
588 "altcontactaddress1",
589 { data_type => "varchar", is_nullable => 1, size => 255 },
590 "altcontactaddress2",
591 { data_type => "varchar", is_nullable => 1, size => 255 },
592 "altcontactaddress3",
593 { data_type => "varchar", is_nullable => 1, size => 255 },
594 "altcontactstate",
595 { data_type => "text", is_nullable => 1 },
596 "altcontactzipcode",
597 { data_type => "varchar", is_nullable => 1, size => 50 },
598 "altcontactcountry",
599 { data_type => "text", is_nullable => 1 },
600 "altcontactphone",
601 { data_type => "varchar", is_nullable => 1, size => 50 },
602 "smsalertnumber",
603 { data_type => "varchar", is_nullable => 1, size => 50 },
604 "sms_provider_id",
605 { data_type => "integer", is_nullable => 1 },
606 "privacy",
607 { data_type => "integer", default_value => 1, is_nullable => 0 },
608 "privacy_guarantor_checkouts",
609 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
610 "checkprevcheckout",
612 data_type => "varchar",
613 default_value => "inherit",
614 is_nullable => 0,
615 size => 7,
617 "updated_on",
619 data_type => "timestamp",
620 datetime_undef_if_invalid => 1,
621 default_value => \"current_timestamp",
622 is_nullable => 0,
624 "lastseen",
626 data_type => "datetime",
627 datetime_undef_if_invalid => 1,
628 is_nullable => 1,
630 "lang",
632 data_type => "varchar",
633 default_value => "default",
634 is_nullable => 0,
635 size => 25,
637 "login_attempts",
638 { data_type => "integer", default_value => 0, is_nullable => 1 },
639 "overdrive_auth_token",
640 { data_type => "text", is_nullable => 1 },
644 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-27 13:24:06
645 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LZK8S3YPK3zZAhH28j8gng
648 # You can replace this text with custom code or comments, and it will be preserved on regeneration