Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / Matchcheck.pm
blob39b94f9c8c3a86c62cfe4508ca5fd2b48cdfe05e
1 use utf8;
2 package Koha::Schema::Result::Matchcheck;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Matchcheck
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<matchchecks>
20 =cut
22 __PACKAGE__->table("matchchecks");
24 =head1 ACCESSORS
26 =head2 matcher_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 matchcheck_id
34 data_type: 'integer'
35 is_auto_increment: 1
36 is_nullable: 0
38 =head2 source_matchpoint_id
40 data_type: 'integer'
41 is_foreign_key: 1
42 is_nullable: 0
44 =head2 target_matchpoint_id
46 data_type: 'integer'
47 is_foreign_key: 1
48 is_nullable: 0
50 =cut
52 __PACKAGE__->add_columns(
53 "matcher_id",
54 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55 "matchcheck_id",
56 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
57 "source_matchpoint_id",
58 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59 "target_matchpoint_id",
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63 =head1 PRIMARY KEY
65 =over 4
67 =item * L</matchcheck_id>
69 =back
71 =cut
73 __PACKAGE__->set_primary_key("matchcheck_id");
75 =head1 RELATIONS
77 =head2 matcher
79 Type: belongs_to
81 Related object: L<Koha::Schema::Result::MarcMatcher>
83 =cut
85 __PACKAGE__->belongs_to(
86 "matcher",
87 "Koha::Schema::Result::MarcMatcher",
88 { matcher_id => "matcher_id" },
89 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92 =head2 source_matchpoint
94 Type: belongs_to
96 Related object: L<Koha::Schema::Result::Matchpoint>
98 =cut
100 __PACKAGE__->belongs_to(
101 "source_matchpoint",
102 "Koha::Schema::Result::Matchpoint",
103 { matchpoint_id => "source_matchpoint_id" },
104 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
107 =head2 target_matchpoint
109 Type: belongs_to
111 Related object: L<Koha::Schema::Result::Matchpoint>
113 =cut
115 __PACKAGE__->belongs_to(
116 "target_matchpoint",
117 "Koha::Schema::Result::Matchpoint",
118 { matchpoint_id => "target_matchpoint_id" },
119 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
123 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3G4E3DxiD6lCTP7a569BQg
127 # You can replace this text with custom content, and it will be preserved on regeneration