Bug 23435: Add multiple copies of an item when receiving in serials
[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 marcfield
33
34   data_type: 'char'
35   is_nullable: 0
36   size: 3
37
38 =head2 marcsubfield
39
40   data_type: 'char'
41   is_nullable: 0
42   size: 1
43
44 =head2 operator
45
46   data_type: 'varchar'
47   default_value: 'equal'
48   is_nullable: 0
49   size: 8
50
51 =head2 marcvalue
52
53   data_type: 'varchar'
54   is_nullable: 0
55   size: 80
56
57 =cut
58
59 __PACKAGE__->add_columns(
60   "set_id",
61   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62   "marcfield",
63   { data_type => "char", is_nullable => 0, size => 3 },
64   "marcsubfield",
65   { data_type => "char", is_nullable => 0, size => 1 },
66   "operator",
67   {
68     data_type => "varchar",
69     default_value => "equal",
70     is_nullable => 0,
71     size => 8,
72   },
73   "marcvalue",
74   { data_type => "varchar", is_nullable => 0, size => 80 },
75 );
76
77 =head1 RELATIONS
78
79 =head2 set
80
81 Type: belongs_to
82
83 Related object: L<Koha::Schema::Result::OaiSet>
84
85 =cut
86
87 __PACKAGE__->belongs_to(
88   "set",
89   "Koha::Schema::Result::OaiSet",
90   { id => "set_id" },
91   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92 );
93
94
95 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
96 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A2fchnI85JftSuruZ1CykQ
97
98
99 # You can replace this text with custom content, and it will be preserved on regeneration
100 1;