]> git.koha-community.org Git - koha.git/blob - Koha/Schema/Result/OaiSetsMapping.pm
Bug 24440: (follow-up) Make related objects prefetchable
[koha.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: 1
36
37 =head2 rule_operator
38
39   data_type: 'varchar'
40   is_nullable: 1
41   size: 3
42
43 =head2 marcfield
44
45   data_type: 'char'
46   is_nullable: 0
47   size: 3
48
49 =head2 marcsubfield
50
51   data_type: 'char'
52   is_nullable: 0
53   size: 1
54
55 =head2 operator
56
57   data_type: 'varchar'
58   default_value: 'equal'
59   is_nullable: 0
60   size: 8
61
62 =head2 marcvalue
63
64   data_type: 'varchar'
65   is_nullable: 0
66   size: 80
67
68 =cut
69
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",
82   {
83     data_type => "varchar",
84     default_value => "equal",
85     is_nullable => 0,
86     size => 8,
87   },
88   "marcvalue",
89   { data_type => "varchar", is_nullable => 0, size => 80 },
90 );
91
92 =head1 RELATIONS
93
94 =head2 set
95
96 Type: belongs_to
97
98 Related object: L<Koha::Schema::Result::OaiSet>
99
100 =cut
101
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" },
107 );
108
109
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
112
113
114 # You can replace this text with custom content, and it will be preserved on regeneration
115 1;