4612b32f9a685a562418a144ec39d44f2a04c5ff
[koha-equinox.git] / Koha / Schema / Result / AuthTagStructure.pm
1 use utf8;
2 package Koha::Schema::Result::AuthTagStructure;
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::AuthTagStructure
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<auth_tag_structure>
19
20 =cut
21
22 __PACKAGE__->table("auth_tag_structure");
23
24 =head1 ACCESSORS
25
26 =head2 authtypecode
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_foreign_key: 1
31   is_nullable: 0
32   size: 10
33
34 =head2 tagfield
35
36   data_type: 'varchar'
37   default_value: (empty string)
38   is_nullable: 0
39   size: 3
40
41 =head2 liblibrarian
42
43   data_type: 'varchar'
44   default_value: (empty string)
45   is_nullable: 0
46   size: 255
47
48 =head2 libopac
49
50   data_type: 'varchar'
51   default_value: (empty string)
52   is_nullable: 0
53   size: 255
54
55 =head2 repeatable
56
57   data_type: 'tinyint'
58   default_value: 0
59   is_nullable: 0
60
61 =head2 mandatory
62
63   data_type: 'tinyint'
64   default_value: 0
65   is_nullable: 0
66
67 =head2 authorised_value
68
69   data_type: 'varchar'
70   is_nullable: 1
71   size: 10
72
73 =cut
74
75 __PACKAGE__->add_columns(
76   "authtypecode",
77   {
78     data_type => "varchar",
79     default_value => "",
80     is_foreign_key => 1,
81     is_nullable => 0,
82     size => 10,
83   },
84   "tagfield",
85   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
86   "liblibrarian",
87   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
88   "libopac",
89   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
90   "repeatable",
91   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
92   "mandatory",
93   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
94   "authorised_value",
95   { data_type => "varchar", is_nullable => 1, size => 10 },
96 );
97
98 =head1 PRIMARY KEY
99
100 =over 4
101
102 =item * L</authtypecode>
103
104 =item * L</tagfield>
105
106 =back
107
108 =cut
109
110 __PACKAGE__->set_primary_key("authtypecode", "tagfield");
111
112 =head1 RELATIONS
113
114 =head2 authtypecode
115
116 Type: belongs_to
117
118 Related object: L<Koha::Schema::Result::AuthType>
119
120 =cut
121
122 __PACKAGE__->belongs_to(
123   "authtypecode",
124   "Koha::Schema::Result::AuthType",
125   { authtypecode => "authtypecode" },
126   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
127 );
128
129
130 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
131 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4ulaQnDuxrwYgCKJ/Qygaw
132
133
134 # You can replace this text with custom content, and it will be preserved on regeneration
135 1;