2 package Koha
::Schema
::Result
::ImportRecord
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ImportRecord
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<import_records>
22 __PACKAGE__
->table("import_records");
26 =head2 import_record_id
32 =head2 import_batch_id
44 =head2 record_sequence
50 =head2 upload_timestamp
52 data_type: 'timestamp'
53 datetime_undef_if_invalid: 1
54 default_value: current_timestamp
60 datetime_undef_if_invalid: 1
81 default_value: 'biblio'
82 extra: {list => ["biblio","auth","holdings"]}
88 default_value: 'no_match'
89 extra: {list => ["no_match","auto_match","manual_match","match_applied"]}
95 default_value: 'staged'
96 extra: {list => ["error","staged","imported","reverted","items_reverted","ignored"]}
101 data_type: 'longtext'
107 default_value: (empty string)
113 __PACKAGE__
->add_columns(
115 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
117 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
119 { data_type
=> "varchar", is_nullable
=> 1, size
=> 10 },
121 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 0 },
124 data_type
=> "timestamp",
125 datetime_undef_if_invalid
=> 1,
126 default_value
=> \"current_timestamp
",
130 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
132 { data_type => "longblob
", is_nullable => 0 },
134 { data_type => "longtext
", is_nullable => 0 },
136 { data_type => "longtext
", is_nullable => 0 },
140 default_value => "biblio
",
141 extra => { list => ["biblio
", "auth
", "holdings
"] },
147 default_value => "no_match
",
149 list => ["no_match
", "auto_match
", "manual_match
", "match_applied
"],
156 default_value => "staged
",
170 { data_type => "longtext
", is_nullable => 1 },
172 { data_type => "varchar
", default_value => "", is_nullable => 0, size => 40 },
179 =item * L</import_record_id>
185 __PACKAGE__->set_primary_key("import_record_id
");
193 Related object: L<Koha::Schema::Result::ImportAuth>
197 __PACKAGE__->has_many(
199 "Koha
::Schema
::Result
::ImportAuth
",
200 { "foreign
.import_record_id
" => "self
.import_record_id
" },
201 { cascade_copy => 0, cascade_delete => 0 },
208 Related object: L<Koha::Schema::Result::ImportBatch>
212 __PACKAGE__->belongs_to(
214 "Koha
::Schema
::Result
::ImportBatch
",
215 { import_batch_id => "import_batch_id
" },
216 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
219 =head2 import_biblios
223 Related object: L<Koha::Schema::Result::ImportBiblio>
227 __PACKAGE__->has_many(
229 "Koha
::Schema
::Result
::ImportBiblio
",
230 { "foreign
.import_record_id
" => "self
.import_record_id
" },
231 { cascade_copy => 0, cascade_delete => 0 },
238 Related object: L<Koha::Schema::Result::ImportItem>
242 __PACKAGE__->has_many(
244 "Koha
::Schema
::Result
::ImportItem
",
245 { "foreign
.import_record_id
" => "self
.import_record_id
" },
246 { cascade_copy => 0, cascade_delete => 0 },
249 =head2 import_record_matches
253 Related object: L<Koha::Schema::Result::ImportRecordMatch>
257 __PACKAGE__->has_many(
258 "import_record_matches
",
259 "Koha
::Schema
::Result
::ImportRecordMatch
",
260 { "foreign
.import_record_id
" => "self
.import_record_id
" },
261 { cascade_copy => 0, cascade_delete => 0 },
265 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-18 10:50:48
266 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bqIAQzhgioWtBWU8zFdtjw
269 # You can replace this text with custom content, and it will be preserved on regeneration