Bug 22899: DBRev 18.12.00.075
[koha.git] / Koha / Schema / Result / TmpHoldsqueue.pm
1 use utf8;
2 package Koha::Schema::Result::TmpHoldsqueue;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::TmpHoldsqueue
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<tmp_holdsqueue>
19
20 =cut
21
22 __PACKAGE__->table("tmp_holdsqueue");
23
24 =head1 ACCESSORS
25
26 =head2 biblionumber
27
28   data_type: 'integer'
29   is_nullable: 1
30
31 =head2 itemnumber
32
33   data_type: 'integer'
34   is_foreign_key: 1
35   is_nullable: 1
36
37 =head2 barcode
38
39   data_type: 'varchar'
40   is_nullable: 1
41   size: 20
42
43 =head2 surname
44
45   data_type: 'longtext'
46   is_nullable: 0
47
48 =head2 firstname
49
50   data_type: 'mediumtext'
51   is_nullable: 1
52
53 =head2 phone
54
55   data_type: 'mediumtext'
56   is_nullable: 1
57
58 =head2 borrowernumber
59
60   data_type: 'integer'
61   is_nullable: 0
62
63 =head2 cardnumber
64
65   data_type: 'varchar'
66   is_nullable: 1
67   size: 32
68
69 =head2 reservedate
70
71   data_type: 'date'
72   datetime_undef_if_invalid: 1
73   is_nullable: 1
74
75 =head2 title
76
77   data_type: 'longtext'
78   is_nullable: 1
79
80 =head2 itemcallnumber
81
82   data_type: 'varchar'
83   is_nullable: 1
84   size: 255
85
86 =head2 holdingbranch
87
88   data_type: 'varchar'
89   is_nullable: 1
90   size: 10
91
92 =head2 pickbranch
93
94   data_type: 'varchar'
95   is_nullable: 1
96   size: 10
97
98 =head2 notes
99
100   data_type: 'mediumtext'
101   is_nullable: 1
102
103 =head2 item_level_request
104
105   data_type: 'tinyint'
106   default_value: 0
107   is_nullable: 0
108
109 =cut
110
111 __PACKAGE__->add_columns(
112   "biblionumber",
113   { data_type => "integer", is_nullable => 1 },
114   "itemnumber",
115   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
116   "barcode",
117   { data_type => "varchar", is_nullable => 1, size => 20 },
118   "surname",
119   { data_type => "longtext", is_nullable => 0 },
120   "firstname",
121   { data_type => "mediumtext", is_nullable => 1 },
122   "phone",
123   { data_type => "mediumtext", is_nullable => 1 },
124   "borrowernumber",
125   { data_type => "integer", is_nullable => 0 },
126   "cardnumber",
127   { data_type => "varchar", is_nullable => 1, size => 32 },
128   "reservedate",
129   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
130   "title",
131   { data_type => "longtext", is_nullable => 1 },
132   "itemcallnumber",
133   { data_type => "varchar", is_nullable => 1, size => 255 },
134   "holdingbranch",
135   { data_type => "varchar", is_nullable => 1, size => 10 },
136   "pickbranch",
137   { data_type => "varchar", is_nullable => 1, size => 10 },
138   "notes",
139   { data_type => "mediumtext", is_nullable => 1 },
140   "item_level_request",
141   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
142 );
143
144 =head1 RELATIONS
145
146 =head2 itemnumber
147
148 Type: belongs_to
149
150 Related object: L<Koha::Schema::Result::Item>
151
152 =cut
153
154 __PACKAGE__->belongs_to(
155   "itemnumber",
156   "Koha::Schema::Result::Item",
157   { itemnumber => "itemnumber" },
158   {
159     is_deferrable => 1,
160     join_type     => "LEFT",
161     on_delete     => "CASCADE",
162     on_update     => "CASCADE",
163   },
164 );
165
166
167 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-05-14 18:14:09
168 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tzgAgf+OVO+IncaTr7SZuQ
169
170
171 # You can replace this text with custom content, and it will be preserved on regeneration
172 1;