Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / ImportRecordMatch.pm
blob0ea5d5691416afa67c5db402ab6d9ca7ce73b110
1 use utf8;
2 package Koha::Schema::Result::ImportRecordMatch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ImportRecordMatch
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<import_record_matches>
20 =cut
22 __PACKAGE__->table("import_record_matches");
24 =head1 ACCESSORS
26 =head2 import_record_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 candidate_match_id
34 data_type: 'integer'
35 is_nullable: 0
37 =head2 score
39 data_type: 'integer'
40 default_value: 0
41 is_nullable: 0
43 =cut
45 __PACKAGE__->add_columns(
46 "import_record_id",
47 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
48 "candidate_match_id",
49 { data_type => "integer", is_nullable => 0 },
50 "score",
51 { data_type => "integer", default_value => 0, is_nullable => 0 },
54 =head1 RELATIONS
56 =head2 import_record
58 Type: belongs_to
60 Related object: L<Koha::Schema::Result::ImportRecord>
62 =cut
64 __PACKAGE__->belongs_to(
65 "import_record",
66 "Koha::Schema::Result::ImportRecord",
67 { import_record_id => "import_record_id" },
68 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
72 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
73 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hJW36EeP+H8+0/Ij3iuIFw
76 # You can replace this text with custom code or comments, and it will be preserved on regeneration