Bug 8798: DBIx::Class base classes for all Koha tables
[koha_fer] / Koha / Schema / Result / MarcMatcher.pm
1 package Koha::Schema::Result::MarcMatcher;
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::MarcMatcher
15
16 =cut
17
18 __PACKAGE__->table("marc_matchers");
19
20 =head1 ACCESSORS
21
22 =head2 matcher_id
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 code
29
30   data_type: 'varchar'
31   default_value: (empty string)
32   is_nullable: 0
33   size: 10
34
35 =head2 description
36
37   data_type: 'varchar'
38   default_value: (empty string)
39   is_nullable: 0
40   size: 255
41
42 =head2 record_type
43
44   data_type: 'varchar'
45   default_value: 'biblio'
46   is_nullable: 0
47   size: 10
48
49 =head2 threshold
50
51   data_type: 'integer'
52   default_value: 0
53   is_nullable: 0
54
55 =cut
56
57 __PACKAGE__->add_columns(
58   "matcher_id",
59   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60   "code",
61   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
62   "description",
63   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
64   "record_type",
65   {
66     data_type => "varchar",
67     default_value => "biblio",
68     is_nullable => 0,
69     size => 10,
70   },
71   "threshold",
72   { data_type => "integer", default_value => 0, is_nullable => 0 },
73 );
74 __PACKAGE__->set_primary_key("matcher_id");
75
76 =head1 RELATIONS
77
78 =head2 matchchecks
79
80 Type: has_many
81
82 Related object: L<Koha::Schema::Result::Matchcheck>
83
84 =cut
85
86 __PACKAGE__->has_many(
87   "matchchecks",
88   "Koha::Schema::Result::Matchcheck",
89   { "foreign.matcher_id" => "self.matcher_id" },
90   { cascade_copy => 0, cascade_delete => 0 },
91 );
92
93 =head2 matcher_matchpoints
94
95 Type: has_many
96
97 Related object: L<Koha::Schema::Result::MatcherMatchpoint>
98
99 =cut
100
101 __PACKAGE__->has_many(
102   "matcher_matchpoints",
103   "Koha::Schema::Result::MatcherMatchpoint",
104   { "foreign.matcher_id" => "self.matcher_id" },
105   { cascade_copy => 0, cascade_delete => 0 },
106 );
107
108 =head2 matchpoints
109
110 Type: has_many
111
112 Related object: L<Koha::Schema::Result::Matchpoint>
113
114 =cut
115
116 __PACKAGE__->has_many(
117   "matchpoints",
118   "Koha::Schema::Result::Matchpoint",
119   { "foreign.matcher_id" => "self.matcher_id" },
120   { cascade_copy => 0, cascade_delete => 0 },
121 );
122
123
124 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
125 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iZyWhA28vO7VHWXtE473TQ
126
127
128 # You can replace this text with custom content, and it will be preserved on regeneration
129 1;