Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / TmpHoldsqueue.pm
blobbb65f43dac4aa3a875992e5124008cbe582e6ad9
1 use utf8;
2 package Koha::Schema::Result::TmpHoldsqueue;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::TmpHoldsqueue
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<tmp_holdsqueue>
20 =cut
22 __PACKAGE__->table("tmp_holdsqueue");
24 =head1 ACCESSORS
26 =head2 biblionumber
28 data_type: 'integer'
29 is_nullable: 1
31 =head2 itemnumber
33 data_type: 'integer'
34 is_foreign_key: 1
35 is_nullable: 1
37 =head2 barcode
39 data_type: 'varchar'
40 is_nullable: 1
41 size: 20
43 =head2 surname
45 data_type: 'longtext'
46 is_nullable: 0
48 =head2 firstname
50 data_type: 'mediumtext'
51 is_nullable: 1
53 =head2 phone
55 data_type: 'mediumtext'
56 is_nullable: 1
58 =head2 borrowernumber
60 data_type: 'integer'
61 is_nullable: 0
63 =head2 cardnumber
65 data_type: 'varchar'
66 is_nullable: 1
67 size: 32
69 =head2 reservedate
71 data_type: 'date'
72 datetime_undef_if_invalid: 1
73 is_nullable: 1
75 =head2 title
77 data_type: 'longtext'
78 is_nullable: 1
80 =head2 itemcallnumber
82 data_type: 'varchar'
83 is_nullable: 1
84 size: 255
86 =head2 holdingbranch
88 data_type: 'varchar'
89 is_nullable: 1
90 size: 10
92 =head2 pickbranch
94 data_type: 'varchar'
95 is_nullable: 1
96 size: 10
98 =head2 notes
100 data_type: 'mediumtext'
101 is_nullable: 1
103 =head2 item_level_request
105 data_type: 'tinyint'
106 default_value: 0
107 is_nullable: 0
109 =cut
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 },
144 =head1 RELATIONS
146 =head2 itemnumber
148 Type: belongs_to
150 Related object: L<Koha::Schema::Result::Item>
152 =cut
154 __PACKAGE__->belongs_to(
155 "itemnumber",
156 "Koha::Schema::Result::Item",
157 { itemnumber => "itemnumber" },
159 is_deferrable => 1,
160 join_type => "LEFT",
161 on_delete => "CASCADE",
162 on_update => "CASCADE",
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
171 # You can replace this text with custom content, and it will be preserved on regeneration