Bug 21250: DBRev 19.12.00.010
[koha-ffzg.git] / Koha / Schema / Result / OaiSetsMapping.pm
1 use utf8;
2 package Koha::Schema::Result::OaiSetsMapping;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::OaiSetsMapping
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<oai_sets_mappings>
19
20 =cut
21
22 __PACKAGE__->table("oai_sets_mappings");
23
24 =head1 ACCESSORS
25
26 =head2 set_id
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 rule_order
33
34   data_type: 'integer'
35   is_nullable: 0
36
37 =head2 rule_operator
38
39   data_type: 'varchar'
40   default_value: 'or'
41   is_nullable: 0
42   size: 3
43
44 =head2 marcfield
45
46   data_type: 'char'
47   is_nullable: 0
48   size: 3
49
50 =head2 marcsubfield
51
52   data_type: 'char'
53   is_nullable: 0
54   size: 1
55
56 =head2 operator
57
58   data_type: 'varchar'
59   default_value: 'equal'
60   is_nullable: 0
61   size: 8
62
63 =head2 marcvalue
64
65   data_type: 'varchar'
66   is_nullable: 0
67   size: 80
68
69 =cut
70
71 __PACKAGE__->add_columns(
72   "set_id",
73   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
74   "rule_order",
75   { data_type => "integer", is_nullable => 0 },
76   "rule_operator",
77   { data_type => "varchar", default_value => "or", is_nullable => 0, size => 3 },
78   "marcfield",
79   { data_type => "char", is_nullable => 0, size => 3 },
80   "marcsubfield",
81   { data_type => "char", is_nullable => 0, size => 1 },
82   "operator",
83   {
84     data_type => "varchar",
85     default_value => "equal",
86     is_nullable => 0,
87     size => 8,
88   },
89   "marcvalue",
90   { data_type => "varchar", is_nullable => 0, size => 80 },
91 );
92
93 =head1 RELATIONS
94
95 =head2 set
96
97 Type: belongs_to
98
99 Related object: L<Koha::Schema::Result::OaiSet>
100
101 =cut
102
103 __PACKAGE__->belongs_to(
104   "set",
105   "Koha::Schema::Result::OaiSet",
106   { id => "set_id" },
107   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
108 );
109
110
111 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-15 16:27:11
112 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:70uqCB/wqEodblvsbKKVvA
113
114
115 # You can replace this text with custom content, and it will be preserved on regeneration
116 1;