Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / OaiSetsMapping.pm
blobaa0d7dbe4a1eeeda7c6cc1f41da916f2341047e6
1 use utf8;
2 package Koha::Schema::Result::OaiSetsMapping;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::OaiSetsMapping
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<oai_sets_mappings>
20 =cut
22 __PACKAGE__->table("oai_sets_mappings");
24 =head1 ACCESSORS
26 =head2 set_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 rule_order
34 data_type: 'integer'
35 is_nullable: 1
37 =head2 rule_operator
39 data_type: 'varchar'
40 is_nullable: 1
41 size: 3
43 =head2 marcfield
45 data_type: 'char'
46 is_nullable: 0
47 size: 3
49 =head2 marcsubfield
51 data_type: 'char'
52 is_nullable: 0
53 size: 1
55 =head2 operator
57 data_type: 'varchar'
58 default_value: 'equal'
59 is_nullable: 0
60 size: 8
62 =head2 marcvalue
64 data_type: 'varchar'
65 is_nullable: 0
66 size: 80
68 =cut
70 __PACKAGE__->add_columns(
71 "set_id",
72 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73 "rule_order",
74 { data_type => "integer", is_nullable => 1 },
75 "rule_operator",
76 { data_type => "varchar", is_nullable => 1, size => 3 },
77 "marcfield",
78 { data_type => "char", is_nullable => 0, size => 3 },
79 "marcsubfield",
80 { data_type => "char", is_nullable => 0, size => 1 },
81 "operator",
83 data_type => "varchar",
84 default_value => "equal",
85 is_nullable => 0,
86 size => 8,
88 "marcvalue",
89 { data_type => "varchar", is_nullable => 0, size => 80 },
92 =head1 RELATIONS
94 =head2 set
96 Type: belongs_to
98 Related object: L<Koha::Schema::Result::OaiSet>
100 =cut
102 __PACKAGE__->belongs_to(
103 "set",
104 "Koha::Schema::Result::OaiSet",
105 { id => "set_id" },
106 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
110 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-17 14:57:11
111 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WiJev30SDAqddxO6moz/7A
114 # You can replace this text with custom content, and it will be preserved on regeneration