Bug 20434: Update UNIMARC framework - auth (SAUTTIT)
[koha.git] / Koha / Schema / Result / OaiSetsMapping.pm
blobe4dd532d3389e0405ec869cafec3fc362eca75d9
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 marcfield
34 data_type: 'char'
35 is_nullable: 0
36 size: 3
38 =head2 marcsubfield
40 data_type: 'char'
41 is_nullable: 0
42 size: 1
44 =head2 operator
46 data_type: 'varchar'
47 default_value: 'equal'
48 is_nullable: 0
49 size: 8
51 =head2 marcvalue
53 data_type: 'varchar'
54 is_nullable: 0
55 size: 80
57 =cut
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",
68 data_type => "varchar",
69 default_value => "equal",
70 is_nullable => 0,
71 size => 8,
73 "marcvalue",
74 { data_type => "varchar", is_nullable => 0, size => 80 },
77 =head1 RELATIONS
79 =head2 set
81 Type: belongs_to
83 Related object: L<Koha::Schema::Result::OaiSet>
85 =cut
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" },
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
99 # You can replace this text with custom content, and it will be preserved on regeneration