Bug 4461: dbic schema update
[koha.git] / Koha / Schema / Result / BorrowerModification.pm
blob3db708d3fc6d866dd24b42f9883b044b7d2aa04b
1 use utf8;
2 package Koha::Schema::Result::BorrowerModification;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::BorrowerModification
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<borrower_modifications>
20 =cut
22 __PACKAGE__->table("borrower_modifications");
24 =head1 ACCESSORS
26 =head2 timestamp
28 data_type: 'timestamp'
29 datetime_undef_if_invalid: 1
30 default_value: current_timestamp
31 is_nullable: 0
33 =head2 verification_token
35 data_type: 'varchar'
36 default_value: (empty string)
37 is_nullable: 0
38 size: 255
40 =head2 changed_fields
42 data_type: 'mediumtext'
43 is_nullable: 0
45 =head2 borrowernumber
47 data_type: 'integer'
48 default_value: 0
49 is_nullable: 0
51 =head2 cardnumber
53 data_type: 'varchar'
54 is_nullable: 1
55 size: 32
57 =head2 surname
59 data_type: 'longtext'
60 is_nullable: 1
62 =head2 firstname
64 data_type: 'mediumtext'
65 is_nullable: 1
67 =head2 title
69 data_type: 'longtext'
70 is_nullable: 1
72 =head2 othernames
74 data_type: 'longtext'
75 is_nullable: 1
77 =head2 initials
79 data_type: 'mediumtext'
80 is_nullable: 1
82 =head2 streetnumber
84 data_type: 'varchar'
85 is_nullable: 1
86 size: 10
88 =head2 streettype
90 data_type: 'varchar'
91 is_nullable: 1
92 size: 50
94 =head2 address
96 data_type: 'longtext'
97 is_nullable: 1
99 =head2 address2
101 data_type: 'mediumtext'
102 is_nullable: 1
104 =head2 city
106 data_type: 'longtext'
107 is_nullable: 1
109 =head2 state
111 data_type: 'mediumtext'
112 is_nullable: 1
114 =head2 zipcode
116 data_type: 'varchar'
117 is_nullable: 1
118 size: 25
120 =head2 country
122 data_type: 'mediumtext'
123 is_nullable: 1
125 =head2 email
127 data_type: 'longtext'
128 is_nullable: 1
130 =head2 phone
132 data_type: 'mediumtext'
133 is_nullable: 1
135 =head2 mobile
137 data_type: 'varchar'
138 is_nullable: 1
139 size: 50
141 =head2 fax
143 data_type: 'longtext'
144 is_nullable: 1
146 =head2 emailpro
148 data_type: 'mediumtext'
149 is_nullable: 1
151 =head2 phonepro
153 data_type: 'mediumtext'
154 is_nullable: 1
156 =head2 B_streetnumber
158 accessor: 'b_streetnumber'
159 data_type: 'varchar'
160 is_nullable: 1
161 size: 10
163 =head2 B_streettype
165 accessor: 'b_streettype'
166 data_type: 'varchar'
167 is_nullable: 1
168 size: 50
170 =head2 B_address
172 accessor: 'b_address'
173 data_type: 'varchar'
174 is_nullable: 1
175 size: 100
177 =head2 B_address2
179 accessor: 'b_address2'
180 data_type: 'mediumtext'
181 is_nullable: 1
183 =head2 B_city
185 accessor: 'b_city'
186 data_type: 'longtext'
187 is_nullable: 1
189 =head2 B_state
191 accessor: 'b_state'
192 data_type: 'mediumtext'
193 is_nullable: 1
195 =head2 B_zipcode
197 accessor: 'b_zipcode'
198 data_type: 'varchar'
199 is_nullable: 1
200 size: 25
202 =head2 B_country
204 accessor: 'b_country'
205 data_type: 'mediumtext'
206 is_nullable: 1
208 =head2 B_email
210 accessor: 'b_email'
211 data_type: 'mediumtext'
212 is_nullable: 1
214 =head2 B_phone
216 accessor: 'b_phone'
217 data_type: 'longtext'
218 is_nullable: 1
220 =head2 dateofbirth
222 data_type: 'date'
223 datetime_undef_if_invalid: 1
224 is_nullable: 1
226 =head2 branchcode
228 data_type: 'varchar'
229 is_nullable: 1
230 size: 10
232 =head2 categorycode
234 data_type: 'varchar'
235 is_nullable: 1
236 size: 10
238 =head2 dateenrolled
240 data_type: 'date'
241 datetime_undef_if_invalid: 1
242 is_nullable: 1
244 =head2 dateexpiry
246 data_type: 'date'
247 datetime_undef_if_invalid: 1
248 is_nullable: 1
250 =head2 date_renewed
252 data_type: 'date'
253 datetime_undef_if_invalid: 1
254 is_nullable: 1
256 =head2 gonenoaddress
258 data_type: 'tinyint'
259 is_nullable: 1
261 =head2 lost
263 data_type: 'tinyint'
264 is_nullable: 1
266 =head2 debarred
268 data_type: 'date'
269 datetime_undef_if_invalid: 1
270 is_nullable: 1
272 =head2 debarredcomment
274 data_type: 'varchar'
275 is_nullable: 1
276 size: 255
278 =head2 contactname
280 data_type: 'longtext'
281 is_nullable: 1
283 =head2 contactfirstname
285 data_type: 'mediumtext'
286 is_nullable: 1
288 =head2 contacttitle
290 data_type: 'mediumtext'
291 is_nullable: 1
293 =head2 borrowernotes
295 data_type: 'longtext'
296 is_nullable: 1
298 =head2 relationship
300 data_type: 'varchar'
301 is_nullable: 1
302 size: 100
304 =head2 sex
306 data_type: 'varchar'
307 is_nullable: 1
308 size: 1
310 =head2 password
312 data_type: 'varchar'
313 is_nullable: 1
314 size: 30
316 =head2 flags
318 data_type: 'integer'
319 is_nullable: 1
321 =head2 userid
323 data_type: 'varchar'
324 is_nullable: 1
325 size: 75
327 =head2 opacnote
329 data_type: 'longtext'
330 is_nullable: 1
332 =head2 contactnote
334 data_type: 'varchar'
335 is_nullable: 1
336 size: 255
338 =head2 sort1
340 data_type: 'varchar'
341 is_nullable: 1
342 size: 80
344 =head2 sort2
346 data_type: 'varchar'
347 is_nullable: 1
348 size: 80
350 =head2 altcontactfirstname
352 data_type: 'varchar'
353 is_nullable: 1
354 size: 255
356 =head2 altcontactsurname
358 data_type: 'varchar'
359 is_nullable: 1
360 size: 255
362 =head2 altcontactaddress1
364 data_type: 'varchar'
365 is_nullable: 1
366 size: 255
368 =head2 altcontactaddress2
370 data_type: 'varchar'
371 is_nullable: 1
372 size: 255
374 =head2 altcontactaddress3
376 data_type: 'varchar'
377 is_nullable: 1
378 size: 255
380 =head2 altcontactstate
382 data_type: 'mediumtext'
383 is_nullable: 1
385 =head2 altcontactzipcode
387 data_type: 'varchar'
388 is_nullable: 1
389 size: 50
391 =head2 altcontactcountry
393 data_type: 'mediumtext'
394 is_nullable: 1
396 =head2 altcontactphone
398 data_type: 'varchar'
399 is_nullable: 1
400 size: 50
402 =head2 smsalertnumber
404 data_type: 'varchar'
405 is_nullable: 1
406 size: 50
408 =head2 privacy
410 data_type: 'integer'
411 is_nullable: 1
413 =head2 extended_attributes
415 data_type: 'mediumtext'
416 is_nullable: 1
418 =head2 gdpr_proc_consent
420 data_type: 'datetime'
421 datetime_undef_if_invalid: 1
422 is_nullable: 1
424 =cut
426 __PACKAGE__->add_columns(
427 "timestamp",
429 data_type => "timestamp",
430 datetime_undef_if_invalid => 1,
431 default_value => \"current_timestamp",
432 is_nullable => 0,
434 "verification_token",
435 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
436 "changed_fields",
437 { data_type => "mediumtext", is_nullable => 0 },
438 "borrowernumber",
439 { data_type => "integer", default_value => 0, is_nullable => 0 },
440 "cardnumber",
441 { data_type => "varchar", is_nullable => 1, size => 32 },
442 "surname",
443 { data_type => "longtext", is_nullable => 1 },
444 "firstname",
445 { data_type => "mediumtext", is_nullable => 1 },
446 "title",
447 { data_type => "longtext", is_nullable => 1 },
448 "othernames",
449 { data_type => "longtext", is_nullable => 1 },
450 "initials",
451 { data_type => "mediumtext", is_nullable => 1 },
452 "streetnumber",
453 { data_type => "varchar", is_nullable => 1, size => 10 },
454 "streettype",
455 { data_type => "varchar", is_nullable => 1, size => 50 },
456 "address",
457 { data_type => "longtext", is_nullable => 1 },
458 "address2",
459 { data_type => "mediumtext", is_nullable => 1 },
460 "city",
461 { data_type => "longtext", is_nullable => 1 },
462 "state",
463 { data_type => "mediumtext", is_nullable => 1 },
464 "zipcode",
465 { data_type => "varchar", is_nullable => 1, size => 25 },
466 "country",
467 { data_type => "mediumtext", is_nullable => 1 },
468 "email",
469 { data_type => "longtext", is_nullable => 1 },
470 "phone",
471 { data_type => "mediumtext", is_nullable => 1 },
472 "mobile",
473 { data_type => "varchar", is_nullable => 1, size => 50 },
474 "fax",
475 { data_type => "longtext", is_nullable => 1 },
476 "emailpro",
477 { data_type => "mediumtext", is_nullable => 1 },
478 "phonepro",
479 { data_type => "mediumtext", is_nullable => 1 },
480 "B_streetnumber",
482 accessor => "b_streetnumber",
483 data_type => "varchar",
484 is_nullable => 1,
485 size => 10,
487 "B_streettype",
489 accessor => "b_streettype",
490 data_type => "varchar",
491 is_nullable => 1,
492 size => 50,
494 "B_address",
496 accessor => "b_address",
497 data_type => "varchar",
498 is_nullable => 1,
499 size => 100,
501 "B_address2",
502 { accessor => "b_address2", data_type => "mediumtext", is_nullable => 1 },
503 "B_city",
504 { accessor => "b_city", data_type => "longtext", is_nullable => 1 },
505 "B_state",
506 { accessor => "b_state", data_type => "mediumtext", is_nullable => 1 },
507 "B_zipcode",
509 accessor => "b_zipcode",
510 data_type => "varchar",
511 is_nullable => 1,
512 size => 25,
514 "B_country",
515 { accessor => "b_country", data_type => "mediumtext", is_nullable => 1 },
516 "B_email",
517 { accessor => "b_email", data_type => "mediumtext", is_nullable => 1 },
518 "B_phone",
519 { accessor => "b_phone", data_type => "longtext", is_nullable => 1 },
520 "dateofbirth",
521 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
522 "branchcode",
523 { data_type => "varchar", is_nullable => 1, size => 10 },
524 "categorycode",
525 { data_type => "varchar", is_nullable => 1, size => 10 },
526 "dateenrolled",
527 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
528 "dateexpiry",
529 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
530 "date_renewed",
531 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
532 "gonenoaddress",
533 { data_type => "tinyint", is_nullable => 1 },
534 "lost",
535 { data_type => "tinyint", is_nullable => 1 },
536 "debarred",
537 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
538 "debarredcomment",
539 { data_type => "varchar", is_nullable => 1, size => 255 },
540 "contactname",
541 { data_type => "longtext", is_nullable => 1 },
542 "contactfirstname",
543 { data_type => "mediumtext", is_nullable => 1 },
544 "contacttitle",
545 { data_type => "mediumtext", is_nullable => 1 },
546 "borrowernotes",
547 { data_type => "longtext", is_nullable => 1 },
548 "relationship",
549 { data_type => "varchar", is_nullable => 1, size => 100 },
550 "sex",
551 { data_type => "varchar", is_nullable => 1, size => 1 },
552 "password",
553 { data_type => "varchar", is_nullable => 1, size => 30 },
554 "flags",
555 { data_type => "integer", is_nullable => 1 },
556 "userid",
557 { data_type => "varchar", is_nullable => 1, size => 75 },
558 "opacnote",
559 { data_type => "longtext", is_nullable => 1 },
560 "contactnote",
561 { data_type => "varchar", is_nullable => 1, size => 255 },
562 "sort1",
563 { data_type => "varchar", is_nullable => 1, size => 80 },
564 "sort2",
565 { data_type => "varchar", is_nullable => 1, size => 80 },
566 "altcontactfirstname",
567 { data_type => "varchar", is_nullable => 1, size => 255 },
568 "altcontactsurname",
569 { data_type => "varchar", is_nullable => 1, size => 255 },
570 "altcontactaddress1",
571 { data_type => "varchar", is_nullable => 1, size => 255 },
572 "altcontactaddress2",
573 { data_type => "varchar", is_nullable => 1, size => 255 },
574 "altcontactaddress3",
575 { data_type => "varchar", is_nullable => 1, size => 255 },
576 "altcontactstate",
577 { data_type => "mediumtext", is_nullable => 1 },
578 "altcontactzipcode",
579 { data_type => "varchar", is_nullable => 1, size => 50 },
580 "altcontactcountry",
581 { data_type => "mediumtext", is_nullable => 1 },
582 "altcontactphone",
583 { data_type => "varchar", is_nullable => 1, size => 50 },
584 "smsalertnumber",
585 { data_type => "varchar", is_nullable => 1, size => 50 },
586 "privacy",
587 { data_type => "integer", is_nullable => 1 },
588 "extended_attributes",
589 { data_type => "mediumtext", is_nullable => 1 },
590 "gdpr_proc_consent",
592 data_type => "datetime",
593 datetime_undef_if_invalid => 1,
594 is_nullable => 1,
598 =head1 PRIMARY KEY
600 =over 4
602 =item * L</verification_token>
604 =item * L</borrowernumber>
606 =back
608 =cut
610 __PACKAGE__->set_primary_key("verification_token", "borrowernumber");
613 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-07-22 16:54:42
614 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jkZUTN+mGIdp8ySV0BYNTw
616 sub koha_object_class {
617 'Koha::Patron::Modification';
619 sub koha_objects_class {
620 'Koha::Patron::Modifications';