2 package Koha::Schema::Result::ImportBatchProfile;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ImportBatchProfile
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<import_batch_profiles>
22 __PACKAGE__->table("import_batch_profiles");
32 unique identifier and primary key
47 the id of the match rule used (matchpoints.matcher_id)
54 the id of the marc modification template
62 how to handle duplicate records
70 how to handle records where no match is found
78 what to do with item records
85 should items be parsed
93 type of record in the batch
113 data_type: 'longtext'
116 any comments added when the file was uploaded
120 __PACKAGE__->add_columns(
122 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
124 { data_type => "varchar", is_nullable => 0, size => 100 },
126 { data_type => "integer", is_nullable => 1 },
128 { data_type => "integer", is_nullable => 1 },
130 { data_type => "varchar", is_nullable => 1, size => 50 },
132 { data_type => "varchar", is_nullable => 1, size => 50 },
134 { data_type => "varchar", is_nullable => 1, size => 50 },
136 { data_type => "tinyint", is_nullable => 1 },
138 { data_type => "varchar", is_nullable => 1, size => 50 },
140 { data_type => "varchar", is_nullable => 1, size => 50 },
142 { data_type => "varchar", is_nullable => 1, size => 50 },
144 { data_type => "longtext", is_nullable => 1 },
157 __PACKAGE__->set_primary_key("id");
159 =head1 UNIQUE CONSTRAINTS
161 =head2 C<u_import_batch_profiles__name>
171 __PACKAGE__->add_unique_constraint("u_import_batch_profiles__name", ["name"]);
175 =head2 import_batches
179 Related object: L<Koha::Schema::Result::ImportBatch>
183 __PACKAGE__->has_many(
185 "Koha::Schema::Result::ImportBatch",
186 { "foreign.profile_id" => "self.id" },
187 { cascade_copy => 0, cascade_delete => 0 },
191 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
192 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RmvuwPN8RT+tBsxR+Q7unA
195 # You can replace this text with custom code or comments, and it will be preserved on regeneration
197 __PACKAGE__->add_columns(
198 '+parse_items' => { is_boolean => 1 },
201 =head2 koha_object_class
207 sub koha_object_class {
208 'Koha::ImportBatchProfile';
211 =head2 koha_objects_class
217 sub koha_objects_class {
218 'Koha::ImportBatchProfiles';