53b3f617ef9206259116a6c7d1619b13406b1be5
[koha.git] / Koha / Schema / Result / OaiSetsMapping.pm
1 package Koha::Schema::Result::OaiSetsMapping;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::OaiSetsMapping
15
16 =cut
17
18 __PACKAGE__->table("oai_sets_mappings");
19
20 =head1 ACCESSORS
21
22 =head2 set_id
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 marcfield
29
30   data_type: 'char'
31   is_nullable: 0
32   size: 3
33
34 =head2 marcsubfield
35
36   data_type: 'char'
37   is_nullable: 0
38   size: 1
39
40 =head2 marcvalue
41
42   data_type: 'varchar'
43   is_nullable: 0
44   size: 80
45
46 =cut
47
48 __PACKAGE__->add_columns(
49   "set_id",
50   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
51   "marcfield",
52   { data_type => "char", is_nullable => 0, size => 3 },
53   "marcsubfield",
54   { data_type => "char", is_nullable => 0, size => 1 },
55   "marcvalue",
56   { data_type => "varchar", is_nullable => 0, size => 80 },
57 );
58
59 =head1 RELATIONS
60
61 =head2 set
62
63 Type: belongs_to
64
65 Related object: L<Koha::Schema::Result::OaiSet>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "set",
71   "Koha::Schema::Result::OaiSet",
72   { id => "set_id" },
73   { on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76
77 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vWEr0nzPAHZAmjsA2NAaQQ
79
80
81 # You can replace this text with custom content, and it will be preserved on regeneration
82 1;