Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / Deletedborrower.pm
1 package Koha::Schema::Result::Deletedborrower;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Deletedborrower
15
16 =cut
17
18 __PACKAGE__->table("deletedborrowers");
19
20 =head1 ACCESSORS
21
22 =head2 borrowernumber
23
24   data_type: 'integer'
25   default_value: 0
26   is_nullable: 0
27
28 =head2 cardnumber
29
30   data_type: 'varchar'
31   is_nullable: 1
32   size: 16
33
34 =head2 surname
35
36   data_type: 'mediumtext'
37   is_nullable: 0
38
39 =head2 firstname
40
41   data_type: 'text'
42   is_nullable: 1
43
44 =head2 title
45
46   data_type: 'mediumtext'
47   is_nullable: 1
48
49 =head2 othernames
50
51   data_type: 'mediumtext'
52   is_nullable: 1
53
54 =head2 initials
55
56   data_type: 'text'
57   is_nullable: 1
58
59 =head2 streetnumber
60
61   data_type: 'varchar'
62   is_nullable: 1
63   size: 10
64
65 =head2 streettype
66
67   data_type: 'varchar'
68   is_nullable: 1
69   size: 50
70
71 =head2 address
72
73   data_type: 'mediumtext'
74   is_nullable: 0
75
76 =head2 address2
77
78   data_type: 'text'
79   is_nullable: 1
80
81 =head2 city
82
83   data_type: 'mediumtext'
84   is_nullable: 0
85
86 =head2 state
87
88   data_type: 'text'
89   is_nullable: 1
90
91 =head2 zipcode
92
93   data_type: 'varchar'
94   is_nullable: 1
95   size: 25
96
97 =head2 country
98
99   data_type: 'text'
100   is_nullable: 1
101
102 =head2 email
103
104   data_type: 'mediumtext'
105   is_nullable: 1
106
107 =head2 phone
108
109   data_type: 'text'
110   is_nullable: 1
111
112 =head2 mobile
113
114   data_type: 'varchar'
115   is_nullable: 1
116   size: 50
117
118 =head2 fax
119
120   data_type: 'mediumtext'
121   is_nullable: 1
122
123 =head2 emailpro
124
125   data_type: 'text'
126   is_nullable: 1
127
128 =head2 phonepro
129
130   data_type: 'text'
131   is_nullable: 1
132
133 =head2 b_streetnumber
134
135   data_type: 'varchar'
136   is_nullable: 1
137   size: 10
138
139 =head2 b_streettype
140
141   data_type: 'varchar'
142   is_nullable: 1
143   size: 50
144
145 =head2 b_address
146
147   data_type: 'varchar'
148   is_nullable: 1
149   size: 100
150
151 =head2 b_address2
152
153   data_type: 'text'
154   is_nullable: 1
155
156 =head2 b_city
157
158   data_type: 'mediumtext'
159   is_nullable: 1
160
161 =head2 b_state
162
163   data_type: 'text'
164   is_nullable: 1
165
166 =head2 b_zipcode
167
168   data_type: 'varchar'
169   is_nullable: 1
170   size: 25
171
172 =head2 b_country
173
174   data_type: 'text'
175   is_nullable: 1
176
177 =head2 b_email
178
179   data_type: 'text'
180   is_nullable: 1
181
182 =head2 b_phone
183
184   data_type: 'mediumtext'
185   is_nullable: 1
186
187 =head2 dateofbirth
188
189   data_type: 'date'
190   is_nullable: 1
191
192 =head2 branchcode
193
194   data_type: 'varchar'
195   default_value: (empty string)
196   is_nullable: 0
197   size: 10
198
199 =head2 categorycode
200
201   data_type: 'varchar'
202   default_value: (empty string)
203   is_nullable: 0
204   size: 10
205
206 =head2 dateenrolled
207
208   data_type: 'date'
209   is_nullable: 1
210
211 =head2 dateexpiry
212
213   data_type: 'date'
214   is_nullable: 1
215
216 =head2 gonenoaddress
217
218   data_type: 'tinyint'
219   is_nullable: 1
220
221 =head2 lost
222
223   data_type: 'tinyint'
224   is_nullable: 1
225
226 =head2 debarred
227
228   data_type: 'date'
229   is_nullable: 1
230
231 =head2 debarredcomment
232
233   data_type: 'varchar'
234   is_nullable: 1
235   size: 255
236
237 =head2 contactname
238
239   data_type: 'mediumtext'
240   is_nullable: 1
241
242 =head2 contactfirstname
243
244   data_type: 'text'
245   is_nullable: 1
246
247 =head2 contacttitle
248
249   data_type: 'text'
250   is_nullable: 1
251
252 =head2 guarantorid
253
254   data_type: 'integer'
255   is_nullable: 1
256
257 =head2 borrowernotes
258
259   data_type: 'mediumtext'
260   is_nullable: 1
261
262 =head2 relationship
263
264   data_type: 'varchar'
265   is_nullable: 1
266   size: 100
267
268 =head2 ethnicity
269
270   data_type: 'varchar'
271   is_nullable: 1
272   size: 50
273
274 =head2 ethnotes
275
276   data_type: 'varchar'
277   is_nullable: 1
278   size: 255
279
280 =head2 sex
281
282   data_type: 'varchar'
283   is_nullable: 1
284   size: 1
285
286 =head2 password
287
288   data_type: 'varchar'
289   is_nullable: 1
290   size: 30
291
292 =head2 flags
293
294   data_type: 'integer'
295   is_nullable: 1
296
297 =head2 userid
298
299   data_type: 'varchar'
300   is_nullable: 1
301   size: 30
302
303 =head2 opacnote
304
305   data_type: 'mediumtext'
306   is_nullable: 1
307
308 =head2 contactnote
309
310   data_type: 'varchar'
311   is_nullable: 1
312   size: 255
313
314 =head2 sort1
315
316   data_type: 'varchar'
317   is_nullable: 1
318   size: 80
319
320 =head2 sort2
321
322   data_type: 'varchar'
323   is_nullable: 1
324   size: 80
325
326 =head2 altcontactfirstname
327
328   data_type: 'varchar'
329   is_nullable: 1
330   size: 255
331
332 =head2 altcontactsurname
333
334   data_type: 'varchar'
335   is_nullable: 1
336   size: 255
337
338 =head2 altcontactaddress1
339
340   data_type: 'varchar'
341   is_nullable: 1
342   size: 255
343
344 =head2 altcontactaddress2
345
346   data_type: 'varchar'
347   is_nullable: 1
348   size: 255
349
350 =head2 altcontactaddress3
351
352   data_type: 'varchar'
353   is_nullable: 1
354   size: 255
355
356 =head2 altcontactstate
357
358   data_type: 'text'
359   is_nullable: 1
360
361 =head2 altcontactzipcode
362
363   data_type: 'varchar'
364   is_nullable: 1
365   size: 50
366
367 =head2 altcontactcountry
368
369   data_type: 'text'
370   is_nullable: 1
371
372 =head2 altcontactphone
373
374   data_type: 'varchar'
375   is_nullable: 1
376   size: 50
377
378 =head2 smsalertnumber
379
380   data_type: 'varchar'
381   is_nullable: 1
382   size: 50
383
384 =head2 privacy
385
386   data_type: 'integer'
387   default_value: 1
388   is_nullable: 0
389
390 =cut
391
392 __PACKAGE__->add_columns(
393   "borrowernumber",
394   { data_type => "integer", default_value => 0, is_nullable => 0 },
395   "cardnumber",
396   { data_type => "varchar", is_nullable => 1, size => 16 },
397   "surname",
398   { data_type => "mediumtext", is_nullable => 0 },
399   "firstname",
400   { data_type => "text", is_nullable => 1 },
401   "title",
402   { data_type => "mediumtext", is_nullable => 1 },
403   "othernames",
404   { data_type => "mediumtext", is_nullable => 1 },
405   "initials",
406   { data_type => "text", is_nullable => 1 },
407   "streetnumber",
408   { data_type => "varchar", is_nullable => 1, size => 10 },
409   "streettype",
410   { data_type => "varchar", is_nullable => 1, size => 50 },
411   "address",
412   { data_type => "mediumtext", is_nullable => 0 },
413   "address2",
414   { data_type => "text", is_nullable => 1 },
415   "city",
416   { data_type => "mediumtext", is_nullable => 0 },
417   "state",
418   { data_type => "text", is_nullable => 1 },
419   "zipcode",
420   { data_type => "varchar", is_nullable => 1, size => 25 },
421   "country",
422   { data_type => "text", is_nullable => 1 },
423   "email",
424   { data_type => "mediumtext", is_nullable => 1 },
425   "phone",
426   { data_type => "text", is_nullable => 1 },
427   "mobile",
428   { data_type => "varchar", is_nullable => 1, size => 50 },
429   "fax",
430   { data_type => "mediumtext", is_nullable => 1 },
431   "emailpro",
432   { data_type => "text", is_nullable => 1 },
433   "phonepro",
434   { data_type => "text", is_nullable => 1 },
435   "b_streetnumber",
436   { data_type => "varchar", is_nullable => 1, size => 10 },
437   "b_streettype",
438   { data_type => "varchar", is_nullable => 1, size => 50 },
439   "b_address",
440   { data_type => "varchar", is_nullable => 1, size => 100 },
441   "b_address2",
442   { data_type => "text", is_nullable => 1 },
443   "b_city",
444   { data_type => "mediumtext", is_nullable => 1 },
445   "b_state",
446   { data_type => "text", is_nullable => 1 },
447   "b_zipcode",
448   { data_type => "varchar", is_nullable => 1, size => 25 },
449   "b_country",
450   { data_type => "text", is_nullable => 1 },
451   "b_email",
452   { data_type => "text", is_nullable => 1 },
453   "b_phone",
454   { data_type => "mediumtext", is_nullable => 1 },
455   "dateofbirth",
456   { data_type => "date", is_nullable => 1 },
457   "branchcode",
458   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
459   "categorycode",
460   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
461   "dateenrolled",
462   { data_type => "date", is_nullable => 1 },
463   "dateexpiry",
464   { data_type => "date", is_nullable => 1 },
465   "gonenoaddress",
466   { data_type => "tinyint", is_nullable => 1 },
467   "lost",
468   { data_type => "tinyint", is_nullable => 1 },
469   "debarred",
470   { data_type => "date", is_nullable => 1 },
471   "debarredcomment",
472   { data_type => "varchar", is_nullable => 1, size => 255 },
473   "contactname",
474   { data_type => "mediumtext", is_nullable => 1 },
475   "contactfirstname",
476   { data_type => "text", is_nullable => 1 },
477   "contacttitle",
478   { data_type => "text", is_nullable => 1 },
479   "guarantorid",
480   { data_type => "integer", is_nullable => 1 },
481   "borrowernotes",
482   { data_type => "mediumtext", is_nullable => 1 },
483   "relationship",
484   { data_type => "varchar", is_nullable => 1, size => 100 },
485   "ethnicity",
486   { data_type => "varchar", is_nullable => 1, size => 50 },
487   "ethnotes",
488   { data_type => "varchar", is_nullable => 1, size => 255 },
489   "sex",
490   { data_type => "varchar", is_nullable => 1, size => 1 },
491   "password",
492   { data_type => "varchar", is_nullable => 1, size => 30 },
493   "flags",
494   { data_type => "integer", is_nullable => 1 },
495   "userid",
496   { data_type => "varchar", is_nullable => 1, size => 30 },
497   "opacnote",
498   { data_type => "mediumtext", is_nullable => 1 },
499   "contactnote",
500   { data_type => "varchar", is_nullable => 1, size => 255 },
501   "sort1",
502   { data_type => "varchar", is_nullable => 1, size => 80 },
503   "sort2",
504   { data_type => "varchar", is_nullable => 1, size => 80 },
505   "altcontactfirstname",
506   { data_type => "varchar", is_nullable => 1, size => 255 },
507   "altcontactsurname",
508   { data_type => "varchar", is_nullable => 1, size => 255 },
509   "altcontactaddress1",
510   { data_type => "varchar", is_nullable => 1, size => 255 },
511   "altcontactaddress2",
512   { data_type => "varchar", is_nullable => 1, size => 255 },
513   "altcontactaddress3",
514   { data_type => "varchar", is_nullable => 1, size => 255 },
515   "altcontactstate",
516   { data_type => "text", is_nullable => 1 },
517   "altcontactzipcode",
518   { data_type => "varchar", is_nullable => 1, size => 50 },
519   "altcontactcountry",
520   { data_type => "text", is_nullable => 1 },
521   "altcontactphone",
522   { data_type => "varchar", is_nullable => 1, size => 50 },
523   "smsalertnumber",
524   { data_type => "varchar", is_nullable => 1, size => 50 },
525   "privacy",
526   { data_type => "integer", default_value => 1, is_nullable => 0 },
527 );
528
529
530 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
531 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1D2zAd8OsHXZ2s9cEVevug
532
533
534 # You can replace this text with custom content, and it will be preserved on regeneration
535 1;