Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / BorrowerModification.pm
blobc91c58e71202ed258491f1602d79306e112acb56
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 borrowernumber
42 data_type: 'integer'
43 default_value: 0
44 is_nullable: 0
46 =head2 cardnumber
48 data_type: 'varchar'
49 is_nullable: 1
50 size: 32
52 =head2 surname
54 data_type: 'longtext'
55 is_nullable: 1
57 =head2 firstname
59 data_type: 'mediumtext'
60 is_nullable: 1
62 =head2 title
64 data_type: 'longtext'
65 is_nullable: 1
67 =head2 othernames
69 data_type: 'longtext'
70 is_nullable: 1
72 =head2 initials
74 data_type: 'mediumtext'
75 is_nullable: 1
77 =head2 streetnumber
79 data_type: 'varchar'
80 is_nullable: 1
81 size: 10
83 =head2 streettype
85 data_type: 'varchar'
86 is_nullable: 1
87 size: 50
89 =head2 address
91 data_type: 'longtext'
92 is_nullable: 1
94 =head2 address2
96 data_type: 'mediumtext'
97 is_nullable: 1
99 =head2 city
101 data_type: 'longtext'
102 is_nullable: 1
104 =head2 state
106 data_type: 'mediumtext'
107 is_nullable: 1
109 =head2 zipcode
111 data_type: 'varchar'
112 is_nullable: 1
113 size: 25
115 =head2 country
117 data_type: 'mediumtext'
118 is_nullable: 1
120 =head2 email
122 data_type: 'longtext'
123 is_nullable: 1
125 =head2 phone
127 data_type: 'mediumtext'
128 is_nullable: 1
130 =head2 mobile
132 data_type: 'varchar'
133 is_nullable: 1
134 size: 50
136 =head2 fax
138 data_type: 'longtext'
139 is_nullable: 1
141 =head2 emailpro
143 data_type: 'mediumtext'
144 is_nullable: 1
146 =head2 phonepro
148 data_type: 'mediumtext'
149 is_nullable: 1
151 =head2 B_streetnumber
153 accessor: 'b_streetnumber'
154 data_type: 'varchar'
155 is_nullable: 1
156 size: 10
158 =head2 B_streettype
160 accessor: 'b_streettype'
161 data_type: 'varchar'
162 is_nullable: 1
163 size: 50
165 =head2 B_address
167 accessor: 'b_address'
168 data_type: 'varchar'
169 is_nullable: 1
170 size: 100
172 =head2 B_address2
174 accessor: 'b_address2'
175 data_type: 'mediumtext'
176 is_nullable: 1
178 =head2 B_city
180 accessor: 'b_city'
181 data_type: 'longtext'
182 is_nullable: 1
184 =head2 B_state
186 accessor: 'b_state'
187 data_type: 'mediumtext'
188 is_nullable: 1
190 =head2 B_zipcode
192 accessor: 'b_zipcode'
193 data_type: 'varchar'
194 is_nullable: 1
195 size: 25
197 =head2 B_country
199 accessor: 'b_country'
200 data_type: 'mediumtext'
201 is_nullable: 1
203 =head2 B_email
205 accessor: 'b_email'
206 data_type: 'mediumtext'
207 is_nullable: 1
209 =head2 B_phone
211 accessor: 'b_phone'
212 data_type: 'longtext'
213 is_nullable: 1
215 =head2 dateofbirth
217 data_type: 'date'
218 datetime_undef_if_invalid: 1
219 is_nullable: 1
221 =head2 branchcode
223 data_type: 'varchar'
224 is_nullable: 1
225 size: 10
227 =head2 categorycode
229 data_type: 'varchar'
230 is_nullable: 1
231 size: 10
233 =head2 dateenrolled
235 data_type: 'date'
236 datetime_undef_if_invalid: 1
237 is_nullable: 1
239 =head2 dateexpiry
241 data_type: 'date'
242 datetime_undef_if_invalid: 1
243 is_nullable: 1
245 =head2 date_renewed
247 data_type: 'date'
248 datetime_undef_if_invalid: 1
249 is_nullable: 1
251 =head2 gonenoaddress
253 data_type: 'tinyint'
254 is_nullable: 1
256 =head2 lost
258 data_type: 'tinyint'
259 is_nullable: 1
261 =head2 debarred
263 data_type: 'date'
264 datetime_undef_if_invalid: 1
265 is_nullable: 1
267 =head2 debarredcomment
269 data_type: 'varchar'
270 is_nullable: 1
271 size: 255
273 =head2 contactname
275 data_type: 'longtext'
276 is_nullable: 1
278 =head2 contactfirstname
280 data_type: 'mediumtext'
281 is_nullable: 1
283 =head2 contacttitle
285 data_type: 'mediumtext'
286 is_nullable: 1
288 =head2 guarantorid
290 data_type: 'integer'
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 "borrowernumber",
437 { data_type => "integer", default_value => 0, is_nullable => 0 },
438 "cardnumber",
439 { data_type => "varchar", is_nullable => 1, size => 32 },
440 "surname",
441 { data_type => "longtext", is_nullable => 1 },
442 "firstname",
443 { data_type => "mediumtext", is_nullable => 1 },
444 "title",
445 { data_type => "longtext", is_nullable => 1 },
446 "othernames",
447 { data_type => "longtext", is_nullable => 1 },
448 "initials",
449 { data_type => "mediumtext", is_nullable => 1 },
450 "streetnumber",
451 { data_type => "varchar", is_nullable => 1, size => 10 },
452 "streettype",
453 { data_type => "varchar", is_nullable => 1, size => 50 },
454 "address",
455 { data_type => "longtext", is_nullable => 1 },
456 "address2",
457 { data_type => "mediumtext", is_nullable => 1 },
458 "city",
459 { data_type => "longtext", is_nullable => 1 },
460 "state",
461 { data_type => "mediumtext", is_nullable => 1 },
462 "zipcode",
463 { data_type => "varchar", is_nullable => 1, size => 25 },
464 "country",
465 { data_type => "mediumtext", is_nullable => 1 },
466 "email",
467 { data_type => "longtext", is_nullable => 1 },
468 "phone",
469 { data_type => "mediumtext", is_nullable => 1 },
470 "mobile",
471 { data_type => "varchar", is_nullable => 1, size => 50 },
472 "fax",
473 { data_type => "longtext", is_nullable => 1 },
474 "emailpro",
475 { data_type => "mediumtext", is_nullable => 1 },
476 "phonepro",
477 { data_type => "mediumtext", is_nullable => 1 },
478 "B_streetnumber",
480 accessor => "b_streetnumber",
481 data_type => "varchar",
482 is_nullable => 1,
483 size => 10,
485 "B_streettype",
487 accessor => "b_streettype",
488 data_type => "varchar",
489 is_nullable => 1,
490 size => 50,
492 "B_address",
494 accessor => "b_address",
495 data_type => "varchar",
496 is_nullable => 1,
497 size => 100,
499 "B_address2",
500 { accessor => "b_address2", data_type => "mediumtext", is_nullable => 1 },
501 "B_city",
502 { accessor => "b_city", data_type => "longtext", is_nullable => 1 },
503 "B_state",
504 { accessor => "b_state", data_type => "mediumtext", is_nullable => 1 },
505 "B_zipcode",
507 accessor => "b_zipcode",
508 data_type => "varchar",
509 is_nullable => 1,
510 size => 25,
512 "B_country",
513 { accessor => "b_country", data_type => "mediumtext", is_nullable => 1 },
514 "B_email",
515 { accessor => "b_email", data_type => "mediumtext", is_nullable => 1 },
516 "B_phone",
517 { accessor => "b_phone", data_type => "longtext", is_nullable => 1 },
518 "dateofbirth",
519 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
520 "branchcode",
521 { data_type => "varchar", is_nullable => 1, size => 10 },
522 "categorycode",
523 { data_type => "varchar", is_nullable => 1, size => 10 },
524 "dateenrolled",
525 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
526 "dateexpiry",
527 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
528 "date_renewed",
529 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
530 "gonenoaddress",
531 { data_type => "tinyint", is_nullable => 1 },
532 "lost",
533 { data_type => "tinyint", is_nullable => 1 },
534 "debarred",
535 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
536 "debarredcomment",
537 { data_type => "varchar", is_nullable => 1, size => 255 },
538 "contactname",
539 { data_type => "longtext", is_nullable => 1 },
540 "contactfirstname",
541 { data_type => "mediumtext", is_nullable => 1 },
542 "contacttitle",
543 { data_type => "mediumtext", is_nullable => 1 },
544 "guarantorid",
545 { data_type => "integer", 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.07042 @ 2018-09-20 13:00:20
614 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qQ0BWngri+79YvK9S8zZPg
617 # You can replace this text with custom content, and it will be preserved on regeneration