Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / Matchpoint.pm
blob3b85d9c8d2bbb1cbc6cd8082c59ad1a0a3561ee0
1 use utf8;
2 package Koha::Schema::Result::Matchpoint;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Matchpoint
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<matchpoints>
20 =cut
22 __PACKAGE__->table("matchpoints");
24 =head1 ACCESSORS
26 =head2 matcher_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 matchpoint_id
34 data_type: 'integer'
35 is_auto_increment: 1
36 is_nullable: 0
38 =head2 search_index
40 data_type: 'varchar'
41 default_value: (empty string)
42 is_nullable: 0
43 size: 30
45 =head2 score
47 data_type: 'integer'
48 default_value: 0
49 is_nullable: 0
51 =cut
53 __PACKAGE__->add_columns(
54 "matcher_id",
55 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56 "matchpoint_id",
57 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
58 "search_index",
59 { data_type => "varchar", default_value => "", is_nullable => 0, size => 30 },
60 "score",
61 { data_type => "integer", default_value => 0, is_nullable => 0 },
64 =head1 PRIMARY KEY
66 =over 4
68 =item * L</matchpoint_id>
70 =back
72 =cut
74 __PACKAGE__->set_primary_key("matchpoint_id");
76 =head1 RELATIONS
78 =head2 matchchecks_source_matchpoints
80 Type: has_many
82 Related object: L<Koha::Schema::Result::Matchcheck>
84 =cut
86 __PACKAGE__->has_many(
87 "matchchecks_source_matchpoints",
88 "Koha::Schema::Result::Matchcheck",
89 { "foreign.source_matchpoint_id" => "self.matchpoint_id" },
90 { cascade_copy => 0, cascade_delete => 0 },
93 =head2 matchchecks_target_matchpoints
95 Type: has_many
97 Related object: L<Koha::Schema::Result::Matchcheck>
99 =cut
101 __PACKAGE__->has_many(
102 "matchchecks_target_matchpoints",
103 "Koha::Schema::Result::Matchcheck",
104 { "foreign.target_matchpoint_id" => "self.matchpoint_id" },
105 { cascade_copy => 0, cascade_delete => 0 },
108 =head2 matcher
110 Type: belongs_to
112 Related object: L<Koha::Schema::Result::MarcMatcher>
114 =cut
116 __PACKAGE__->belongs_to(
117 "matcher",
118 "Koha::Schema::Result::MarcMatcher",
119 { matcher_id => "matcher_id" },
120 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
123 =head2 matcher_matchpoints
125 Type: has_many
127 Related object: L<Koha::Schema::Result::MatcherMatchpoint>
129 =cut
131 __PACKAGE__->has_many(
132 "matcher_matchpoints",
133 "Koha::Schema::Result::MatcherMatchpoint",
134 { "foreign.matchpoint_id" => "self.matchpoint_id" },
135 { cascade_copy => 0, cascade_delete => 0 },
138 =head2 matchpoint_components
140 Type: has_many
142 Related object: L<Koha::Schema::Result::MatchpointComponent>
144 =cut
146 __PACKAGE__->has_many(
147 "matchpoint_components",
148 "Koha::Schema::Result::MatchpointComponent",
149 { "foreign.matchpoint_id" => "self.matchpoint_id" },
150 { cascade_copy => 0, cascade_delete => 0 },
154 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
155 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KvZ0QM+OoJ+xaUKdkPGASg
158 # You can replace this text with custom content, and it will be preserved on regeneration