Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / MarcMatcher.pm
blob3f1750a0bc3faa8c65beef22beb9bc620dd1ac3c
1 use utf8;
2 package Koha::Schema::Result::MarcMatcher;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::MarcMatcher
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<marc_matchers>
20 =cut
22 __PACKAGE__->table("marc_matchers");
24 =head1 ACCESSORS
26 =head2 matcher_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 code
34 data_type: 'varchar'
35 default_value: (empty string)
36 is_nullable: 0
37 size: 10
39 =head2 description
41 data_type: 'varchar'
42 default_value: (empty string)
43 is_nullable: 0
44 size: 255
46 =head2 record_type
48 data_type: 'varchar'
49 default_value: 'biblio'
50 is_nullable: 0
51 size: 10
53 =head2 threshold
55 data_type: 'integer'
56 default_value: 0
57 is_nullable: 0
59 =cut
61 __PACKAGE__->add_columns(
62 "matcher_id",
63 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64 "code",
65 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
66 "description",
67 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
68 "record_type",
70 data_type => "varchar",
71 default_value => "biblio",
72 is_nullable => 0,
73 size => 10,
75 "threshold",
76 { data_type => "integer", default_value => 0, is_nullable => 0 },
79 =head1 PRIMARY KEY
81 =over 4
83 =item * L</matcher_id>
85 =back
87 =cut
89 __PACKAGE__->set_primary_key("matcher_id");
91 =head1 RELATIONS
93 =head2 matchchecks
95 Type: has_many
97 Related object: L<Koha::Schema::Result::Matchcheck>
99 =cut
101 __PACKAGE__->has_many(
102 "matchchecks",
103 "Koha::Schema::Result::Matchcheck",
104 { "foreign.matcher_id" => "self.matcher_id" },
105 { cascade_copy => 0, cascade_delete => 0 },
108 =head2 matcher_matchpoints
110 Type: has_many
112 Related object: L<Koha::Schema::Result::MatcherMatchpoint>
114 =cut
116 __PACKAGE__->has_many(
117 "matcher_matchpoints",
118 "Koha::Schema::Result::MatcherMatchpoint",
119 { "foreign.matcher_id" => "self.matcher_id" },
120 { cascade_copy => 0, cascade_delete => 0 },
123 =head2 matchpoints
125 Type: has_many
127 Related object: L<Koha::Schema::Result::Matchpoint>
129 =cut
131 __PACKAGE__->has_many(
132 "matchpoints",
133 "Koha::Schema::Result::Matchpoint",
134 { "foreign.matcher_id" => "self.matcher_id" },
135 { cascade_copy => 0, cascade_delete => 0 },
139 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
140 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2K4K9wfjRlJJKDztPgHJDA
143 # You can replace this text with custom content, and it will be preserved on regeneration