2 package Koha::Schema::Result::Illbatch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Illbatch
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<illbatches>
22 __PACKAGE__->table("illbatches");
56 Patron associated with batch
65 Branch associated with batch
78 __PACKAGE__->add_columns(
80 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
82 { data_type => "varchar", is_nullable => 0, size => 100 },
84 { data_type => "varchar", is_nullable => 0, size => 20 },
86 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
88 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 50 },
90 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 20 },
103 __PACKAGE__->set_primary_key("id");
105 =head1 UNIQUE CONSTRAINTS
107 =head2 C<u_illbatches__name>
117 __PACKAGE__->add_unique_constraint("u_illbatches__name", ["name"]);
121 =head2 borrowernumber
125 Related object: L<Koha::Schema::Result::Borrower>
129 __PACKAGE__->belongs_to(
131 "Koha::Schema::Result::Borrower",
132 { borrowernumber => "borrowernumber" },
136 on_delete => "SET NULL",
137 on_update => "CASCADE",
145 Related object: L<Koha::Schema::Result::Branch>
149 __PACKAGE__->belongs_to(
151 "Koha::Schema::Result::Branch",
152 { branchcode => "branchcode" },
156 on_delete => "SET NULL",
157 on_update => "CASCADE",
165 Related object: L<Koha::Schema::Result::Illrequest>
169 __PACKAGE__->has_many(
171 "Koha::Schema::Result::Illrequest",
172 { "foreign.batch_id" => "self.id" },
173 { cascade_copy => 0, cascade_delete => 0 },
180 Related object: L<Koha::Schema::Result::IllbatchStatus>
184 __PACKAGE__->belongs_to(
186 "Koha::Schema::Result::IllbatchStatus",
187 { code => "statuscode" },
191 on_delete => "SET NULL",
192 on_update => "CASCADE",
197 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-09-08 13:49:29
198 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YKxQxJMKxdBP9X4+i0Rfzw
200 sub koha_object_class {
204 sub koha_objects_class {