2 package Koha::Schema::Result::Illrequest;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Illrequest
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<illrequests>
22 __PACKAGE__->table("illrequests");
29 extra: {unsigned => 1}
60 datetime_undef_if_invalid: 1
66 datetime_undef_if_invalid: 1
71 data_type: 'timestamp'
72 datetime_undef_if_invalid: 1
73 default_value: current_timestamp
79 datetime_undef_if_invalid: 1
102 data_type: 'mediumtext'
107 data_type: 'mediumtext'
124 __PACKAGE__->add_columns(
127 data_type => "bigint",
128 extra => { unsigned => 1 },
129 is_auto_increment => 1,
133 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
135 { data_type => "integer", is_nullable => 1 },
137 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 50 },
139 { data_type => "varchar", is_nullable => 1, size => 50 },
141 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
143 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
146 data_type => "timestamp",
147 datetime_undef_if_invalid => 1,
148 default_value => \"current_timestamp",
152 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
154 { data_type => "varchar", is_nullable => 1, size => 30 },
156 { data_type => "varchar", is_nullable => 1, size => 500 },
158 { data_type => "varchar", is_nullable => 1, size => 20 },
160 { data_type => "mediumtext", is_nullable => 1 },
162 { data_type => "mediumtext", is_nullable => 1 },
164 { data_type => "varchar", is_nullable => 1, size => 50 },
166 { data_type => "varchar", is_nullable => 1, size => 20 },
173 =item * L</illrequest_id>
179 __PACKAGE__->set_primary_key("illrequest_id");
183 =head2 borrowernumber
187 Related object: L<Koha::Schema::Result::Borrower>
191 __PACKAGE__->belongs_to(
193 "Koha::Schema::Result::Borrower",
194 { borrowernumber => "borrowernumber" },
198 on_delete => "CASCADE",
199 on_update => "CASCADE",
207 Related object: L<Koha::Schema::Result::Branch>
211 __PACKAGE__->belongs_to(
213 "Koha::Schema::Result::Branch",
214 { branchcode => "branchcode" },
215 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
218 =head2 illrequestattributes
222 Related object: L<Koha::Schema::Result::Illrequestattribute>
226 __PACKAGE__->has_many(
227 "illrequestattributes",
228 "Koha::Schema::Result::Illrequestattribute",
229 { "foreign.illrequest_id" => "self.illrequest_id" },
230 { cascade_copy => 0, cascade_delete => 0 },
234 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
235 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Rh8DSs3xj3KRmyd7WNGDAg
238 # You can replace this text with custom code or comments, and it will be preserved on regeneration