5f34d303415a8fa539331173f311349b0f2bc59d
[koha_ffzg] / Koha / Schema / Result / ImportRecordMatches.pm
1 package Koha::Schema::Result::ImportRecordMatches;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::ImportRecordMatches
15
16 =cut
17
18 __PACKAGE__->table("import_record_matches");
19
20 =head1 ACCESSORS
21
22 =head2 import_record_id
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 candidate_match_id
29
30   data_type: 'integer'
31   is_nullable: 0
32
33 =head2 score
34
35   data_type: 'integer'
36   default_value: 0
37   is_nullable: 0
38
39 =cut
40
41 __PACKAGE__->add_columns(
42   "import_record_id",
43   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44   "candidate_match_id",
45   { data_type => "integer", is_nullable => 0 },
46   "score",
47   { data_type => "integer", default_value => 0, is_nullable => 0 },
48 );
49
50 =head1 RELATIONS
51
52 =head2 import_record
53
54 Type: belongs_to
55
56 Related object: L<Koha::Schema::Result::ImportRecord>
57
58 =cut
59
60 __PACKAGE__->belongs_to(
61   "import_record",
62   "Koha::Schema::Result::ImportRecord",
63   { import_record_id => "import_record_id" },
64   { on_delete => "CASCADE", on_update => "CASCADE" },
65 );
66
67
68 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
69 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XNn+Yyr6xKz3R4ewz9PSpQ
70
71
72 # You can replace this text with custom content, and it will be preserved on regeneration
73 1;