2 package Koha::Schema::Result::ImportRecordMatch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ImportRecordMatch
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<import_record_matches>
22 __PACKAGE__->table("import_record_matches");
26 =head2 import_record_id
32 the id given to the imported bib record (import_records.import_record_id)
34 =head2 candidate_match_id
39 the biblio the imported record matches (biblio.biblionumber)
54 whether this match has been allowed or denied
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62 { data_type => "integer", is_nullable => 0 },
64 { data_type => "integer", default_value => 0, is_nullable => 0 },
66 { data_type => "tinyint", is_nullable => 1 },
73 =item * L</import_record_id>
75 =item * L</candidate_match_id>
81 __PACKAGE__->set_primary_key("import_record_id", "candidate_match_id");
89 Related object: L<Koha::Schema::Result::ImportRecord>
93 __PACKAGE__->belongs_to(
95 "Koha::Schema::Result::ImportRecord",
96 { import_record_id => "import_record_id" },
97 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
101 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-03 20:30:28
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a1GMA3K9ZgtPGdsCWmDMFw
104 __PACKAGE__->add_columns(
105 '+chosen' => { is_boolean => 1 },
108 sub koha_object_class {
109 'Koha::Import::Record::Match';
111 sub koha_objects_class {
112 'Koha::Import::Record::Matches';