Bug 23753: Add missing humanMsg library to pages using background job JavaScript
[koha.git] / Koha / Schema / Result / ArticleRequest.pm
blobe26f5c4304234c7e50a840b2a5c7f80bdccebc6a
1 use utf8;
2 package Koha::Schema::Result::ArticleRequest;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ArticleRequest
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<article_requests>
20 =cut
22 __PACKAGE__->table("article_requests");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 borrowernumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 biblionumber
40 data_type: 'integer'
41 is_foreign_key: 1
42 is_nullable: 0
44 =head2 itemnumber
46 data_type: 'integer'
47 is_foreign_key: 1
48 is_nullable: 1
50 =head2 branchcode
52 data_type: 'varchar'
53 is_foreign_key: 1
54 is_nullable: 1
55 size: 10
57 =head2 title
59 data_type: 'mediumtext'
60 is_nullable: 1
62 =head2 author
64 data_type: 'mediumtext'
65 is_nullable: 1
67 =head2 volume
69 data_type: 'mediumtext'
70 is_nullable: 1
72 =head2 issue
74 data_type: 'mediumtext'
75 is_nullable: 1
77 =head2 date
79 data_type: 'mediumtext'
80 is_nullable: 1
82 =head2 pages
84 data_type: 'mediumtext'
85 is_nullable: 1
87 =head2 chapters
89 data_type: 'mediumtext'
90 is_nullable: 1
92 =head2 patron_notes
94 data_type: 'mediumtext'
95 is_nullable: 1
97 =head2 status
99 data_type: 'enum'
100 default_value: 'PENDING'
101 extra: {list => ["PENDING","PROCESSING","COMPLETED","CANCELED"]}
102 is_nullable: 0
104 =head2 notes
106 data_type: 'mediumtext'
107 is_nullable: 1
109 =head2 created_on
111 data_type: 'timestamp'
112 datetime_undef_if_invalid: 1
113 default_value: current_timestamp
114 is_nullable: 0
116 =head2 updated_on
118 data_type: 'timestamp'
119 datetime_undef_if_invalid: 1
120 is_nullable: 1
122 =cut
124 __PACKAGE__->add_columns(
125 "id",
126 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
127 "borrowernumber",
128 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
129 "biblionumber",
130 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
131 "itemnumber",
132 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
133 "branchcode",
134 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
135 "title",
136 { data_type => "mediumtext", is_nullable => 1 },
137 "author",
138 { data_type => "mediumtext", is_nullable => 1 },
139 "volume",
140 { data_type => "mediumtext", is_nullable => 1 },
141 "issue",
142 { data_type => "mediumtext", is_nullable => 1 },
143 "date",
144 { data_type => "mediumtext", is_nullable => 1 },
145 "pages",
146 { data_type => "mediumtext", is_nullable => 1 },
147 "chapters",
148 { data_type => "mediumtext", is_nullable => 1 },
149 "patron_notes",
150 { data_type => "mediumtext", is_nullable => 1 },
151 "status",
153 data_type => "enum",
154 default_value => "PENDING",
155 extra => { list => ["PENDING", "PROCESSING", "COMPLETED", "CANCELED"] },
156 is_nullable => 0,
158 "notes",
159 { data_type => "mediumtext", is_nullable => 1 },
160 "created_on",
162 data_type => "timestamp",
163 datetime_undef_if_invalid => 1,
164 default_value => \"current_timestamp",
165 is_nullable => 0,
167 "updated_on",
169 data_type => "timestamp",
170 datetime_undef_if_invalid => 1,
171 is_nullable => 1,
175 =head1 PRIMARY KEY
177 =over 4
179 =item * L</id>
181 =back
183 =cut
185 __PACKAGE__->set_primary_key("id");
187 =head1 RELATIONS
189 =head2 biblionumber
191 Type: belongs_to
193 Related object: L<Koha::Schema::Result::Biblio>
195 =cut
197 __PACKAGE__->belongs_to(
198 "biblionumber",
199 "Koha::Schema::Result::Biblio",
200 { biblionumber => "biblionumber" },
201 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
204 =head2 borrowernumber
206 Type: belongs_to
208 Related object: L<Koha::Schema::Result::Borrower>
210 =cut
212 __PACKAGE__->belongs_to(
213 "borrowernumber",
214 "Koha::Schema::Result::Borrower",
215 { borrowernumber => "borrowernumber" },
216 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
219 =head2 branchcode
221 Type: belongs_to
223 Related object: L<Koha::Schema::Result::Branch>
225 =cut
227 __PACKAGE__->belongs_to(
228 "branchcode",
229 "Koha::Schema::Result::Branch",
230 { branchcode => "branchcode" },
232 is_deferrable => 1,
233 join_type => "LEFT",
234 on_delete => "SET NULL",
235 on_update => "CASCADE",
239 =head2 itemnumber
241 Type: belongs_to
243 Related object: L<Koha::Schema::Result::Item>
245 =cut
247 __PACKAGE__->belongs_to(
248 "itemnumber",
249 "Koha::Schema::Result::Item",
250 { itemnumber => "itemnumber" },
252 is_deferrable => 1,
253 join_type => "LEFT",
254 on_delete => "SET NULL",
255 on_update => "CASCADE",
260 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
261 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BOBB3vld8wY75u45YldoEg
264 # You can replace this text with custom code or comments, and it will be preserved on regeneration