Bug 15478 - Checksum mismatch when regenerating schema
[koha.git] / Koha / Schema / Result / Deletedborrower.pm
blob315903500e53c2a68506dd10b7658c20ee1f44e3
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: 16
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 gonenoaddress
235 data_type: 'tinyint'
236 is_nullable: 1
238 =head2 lost
240 data_type: 'tinyint'
241 is_nullable: 1
243 =head2 debarred
245 data_type: 'date'
246 datetime_undef_if_invalid: 1
247 is_nullable: 1
249 =head2 debarredcomment
251 data_type: 'varchar'
252 is_nullable: 1
253 size: 255
255 =head2 contactname
257 data_type: 'mediumtext'
258 is_nullable: 1
260 =head2 contactfirstname
262 data_type: 'text'
263 is_nullable: 1
265 =head2 contacttitle
267 data_type: 'text'
268 is_nullable: 1
270 =head2 guarantorid
272 data_type: 'integer'
273 is_nullable: 1
275 =head2 borrowernotes
277 data_type: 'mediumtext'
278 is_nullable: 1
280 =head2 relationship
282 data_type: 'varchar'
283 is_nullable: 1
284 size: 100
286 =head2 sex
288 data_type: 'varchar'
289 is_nullable: 1
290 size: 1
292 =head2 password
294 data_type: 'varchar'
295 is_nullable: 1
296 size: 30
298 =head2 flags
300 data_type: 'integer'
301 is_nullable: 1
303 =head2 userid
305 data_type: 'varchar'
306 is_nullable: 1
307 size: 30
309 =head2 opacnote
311 data_type: 'mediumtext'
312 is_nullable: 1
314 =head2 contactnote
316 data_type: 'varchar'
317 is_nullable: 1
318 size: 255
320 =head2 sort1
322 data_type: 'varchar'
323 is_nullable: 1
324 size: 80
326 =head2 sort2
328 data_type: 'varchar'
329 is_nullable: 1
330 size: 80
332 =head2 altcontactfirstname
334 data_type: 'varchar'
335 is_nullable: 1
336 size: 255
338 =head2 altcontactsurname
340 data_type: 'varchar'
341 is_nullable: 1
342 size: 255
344 =head2 altcontactaddress1
346 data_type: 'varchar'
347 is_nullable: 1
348 size: 255
350 =head2 altcontactaddress2
352 data_type: 'varchar'
353 is_nullable: 1
354 size: 255
356 =head2 altcontactaddress3
358 data_type: 'varchar'
359 is_nullable: 1
360 size: 255
362 =head2 altcontactstate
364 data_type: 'text'
365 is_nullable: 1
367 =head2 altcontactzipcode
369 data_type: 'varchar'
370 is_nullable: 1
371 size: 50
373 =head2 altcontactcountry
375 data_type: 'text'
376 is_nullable: 1
378 =head2 altcontactphone
380 data_type: 'varchar'
381 is_nullable: 1
382 size: 50
384 =head2 smsalertnumber
386 data_type: 'varchar'
387 is_nullable: 1
388 size: 50
390 =head2 privacy
392 data_type: 'integer'
393 default_value: 1
394 is_nullable: 0
396 =head2 privacy_guarantor_checkouts
398 data_type: 'tinyint'
399 default_value: 0
400 is_nullable: 0
402 =cut
404 __PACKAGE__->add_columns(
405 "borrowernumber",
406 { data_type => "integer", default_value => 0, is_nullable => 0 },
407 "cardnumber",
408 { data_type => "varchar", is_nullable => 1, size => 16 },
409 "surname",
410 { data_type => "mediumtext", is_nullable => 0 },
411 "firstname",
412 { data_type => "text", is_nullable => 1 },
413 "title",
414 { data_type => "mediumtext", is_nullable => 1 },
415 "othernames",
416 { data_type => "mediumtext", is_nullable => 1 },
417 "initials",
418 { data_type => "text", is_nullable => 1 },
419 "streetnumber",
420 { data_type => "varchar", is_nullable => 1, size => 10 },
421 "streettype",
422 { data_type => "varchar", is_nullable => 1, size => 50 },
423 "address",
424 { data_type => "mediumtext", is_nullable => 0 },
425 "address2",
426 { data_type => "text", is_nullable => 1 },
427 "city",
428 { data_type => "mediumtext", is_nullable => 0 },
429 "state",
430 { data_type => "text", is_nullable => 1 },
431 "zipcode",
432 { data_type => "varchar", is_nullable => 1, size => 25 },
433 "country",
434 { data_type => "text", is_nullable => 1 },
435 "email",
436 { data_type => "mediumtext", is_nullable => 1 },
437 "phone",
438 { data_type => "text", is_nullable => 1 },
439 "mobile",
440 { data_type => "varchar", is_nullable => 1, size => 50 },
441 "fax",
442 { data_type => "mediumtext", is_nullable => 1 },
443 "emailpro",
444 { data_type => "text", is_nullable => 1 },
445 "phonepro",
446 { data_type => "text", is_nullable => 1 },
447 "B_streetnumber",
449 accessor => "b_streetnumber",
450 data_type => "varchar",
451 is_nullable => 1,
452 size => 10,
454 "B_streettype",
456 accessor => "b_streettype",
457 data_type => "varchar",
458 is_nullable => 1,
459 size => 50,
461 "B_address",
463 accessor => "b_address",
464 data_type => "varchar",
465 is_nullable => 1,
466 size => 100,
468 "B_address2",
469 { accessor => "b_address2", data_type => "text", is_nullable => 1 },
470 "B_city",
471 { accessor => "b_city", data_type => "mediumtext", is_nullable => 1 },
472 "B_state",
473 { accessor => "b_state", data_type => "text", is_nullable => 1 },
474 "B_zipcode",
476 accessor => "b_zipcode",
477 data_type => "varchar",
478 is_nullable => 1,
479 size => 25,
481 "B_country",
482 { accessor => "b_country", data_type => "text", is_nullable => 1 },
483 "B_email",
484 { accessor => "b_email", data_type => "text", is_nullable => 1 },
485 "B_phone",
486 { accessor => "b_phone", data_type => "mediumtext", is_nullable => 1 },
487 "dateofbirth",
488 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
489 "branchcode",
490 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
491 "categorycode",
492 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
493 "dateenrolled",
494 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
495 "dateexpiry",
496 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
497 "gonenoaddress",
498 { data_type => "tinyint", is_nullable => 1 },
499 "lost",
500 { data_type => "tinyint", is_nullable => 1 },
501 "debarred",
502 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
503 "debarredcomment",
504 { data_type => "varchar", is_nullable => 1, size => 255 },
505 "contactname",
506 { data_type => "mediumtext", is_nullable => 1 },
507 "contactfirstname",
508 { data_type => "text", is_nullable => 1 },
509 "contacttitle",
510 { data_type => "text", is_nullable => 1 },
511 "guarantorid",
512 { data_type => "integer", is_nullable => 1 },
513 "borrowernotes",
514 { data_type => "mediumtext", is_nullable => 1 },
515 "relationship",
516 { data_type => "varchar", is_nullable => 1, size => 100 },
517 "sex",
518 { data_type => "varchar", is_nullable => 1, size => 1 },
519 "password",
520 { data_type => "varchar", is_nullable => 1, size => 30 },
521 "flags",
522 { data_type => "integer", is_nullable => 1 },
523 "userid",
524 { data_type => "varchar", is_nullable => 1, size => 30 },
525 "opacnote",
526 { data_type => "mediumtext", is_nullable => 1 },
527 "contactnote",
528 { data_type => "varchar", is_nullable => 1, size => 255 },
529 "sort1",
530 { data_type => "varchar", is_nullable => 1, size => 80 },
531 "sort2",
532 { data_type => "varchar", is_nullable => 1, size => 80 },
533 "altcontactfirstname",
534 { data_type => "varchar", is_nullable => 1, size => 255 },
535 "altcontactsurname",
536 { data_type => "varchar", is_nullable => 1, size => 255 },
537 "altcontactaddress1",
538 { data_type => "varchar", is_nullable => 1, size => 255 },
539 "altcontactaddress2",
540 { data_type => "varchar", is_nullable => 1, size => 255 },
541 "altcontactaddress3",
542 { data_type => "varchar", is_nullable => 1, size => 255 },
543 "altcontactstate",
544 { data_type => "text", is_nullable => 1 },
545 "altcontactzipcode",
546 { data_type => "varchar", is_nullable => 1, size => 50 },
547 "altcontactcountry",
548 { data_type => "text", is_nullable => 1 },
549 "altcontactphone",
550 { data_type => "varchar", is_nullable => 1, size => 50 },
551 "smsalertnumber",
552 { data_type => "varchar", is_nullable => 1, size => 50 },
553 "privacy",
554 { data_type => "integer", default_value => 1, is_nullable => 0 },
555 "privacy_guarantor_checkouts",
556 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
560 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-06 12:00:28
561 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aNmdXpOz+XN5abM67sl8uA
564 # You can replace this text with custom code or comments, and it will be preserved on regeneration