2 package Koha::Schema::Result::ImportBatch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ImportBatch
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<import_batches>
22 __PACKAGE__->table("import_batches");
26 =head2 import_batch_id
60 =head2 upload_timestamp
62 data_type: 'timestamp'
63 datetime_undef_if_invalid: 1
64 default_value: current_timestamp
70 default_value: 'create_new'
71 extra: {list => ["replace","create_new","use_template","ignore"]}
77 default_value: 'create_new'
78 extra: {list => ["create_new","ignore"]}
84 default_value: 'always_add'
85 extra: {list => ["always_add","add_only_for_matches","add_only_for_new","ignore"]}
91 default_value: 'staging'
92 extra: {list => ["staging","staged","importing","imported","reverting","reverted","cleaned"]}
98 default_value: 'batch'
99 extra: {list => ["batch","z3950","webservice"]}
105 default_value: 'biblio'
106 extra: {list => ["biblio","auth","holdings"]}
117 data_type: 'mediumtext'
122 __PACKAGE__->add_columns(
124 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
126 { data_type => "integer", is_nullable => 1 },
128 { data_type => "integer", is_nullable => 1 },
130 { data_type => "varchar", is_nullable => 1, size => 10 },
132 { data_type => "integer", default_value => 0, is_nullable => 0 },
134 { data_type => "integer", default_value => 0, is_nullable => 0 },
137 data_type => "timestamp",
138 datetime_undef_if_invalid => 1,
139 default_value => \"current_timestamp",
145 default_value => "create_new",
146 extra => { list => ["replace", "create_new", "use_template", "ignore"] },
152 default_value => "create_new",
153 extra => { list => ["create_new", "ignore"] },
159 default_value => "always_add",
163 "add_only_for_matches",
173 default_value => "staging",
190 default_value => "batch",
191 extra => { list => ["batch", "z3950", "webservice"] },
197 default_value => "biblio",
198 extra => { list => ["biblio", "auth", "holdings"] },
202 { data_type => "varchar", is_nullable => 1, size => 100 },
204 { data_type => "mediumtext", is_nullable => 1 },
211 =item * L</import_batch_id>
217 __PACKAGE__->set_primary_key("import_batch_id");
221 =head2 import_records
225 Related object: L<Koha::Schema::Result::ImportRecord>
229 __PACKAGE__->has_many(
231 "Koha::Schema::Result::ImportRecord",
232 { "foreign.import_batch_id" => "self.import_batch_id" },
233 { cascade_copy => 0, cascade_delete => 0 },
237 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
238 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BJP/3AecpTwJUqkidgha7w
241 # You can replace this text with custom content, and it will be preserved on regeneration