Bug 4461: dbic schema update
[koha.git] / Koha / Schema / Result / AuthTagStructure.pm
blob3bc92350acd31d0a3172f2804dc3a6174770aaa2
1 use utf8;
2 package Koha::Schema::Result::AuthTagStructure;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthTagStructure
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<auth_tag_structure>
20 =cut
22 __PACKAGE__->table("auth_tag_structure");
24 =head1 ACCESSORS
26 =head2 authtypecode
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_foreign_key: 1
31 is_nullable: 0
32 size: 10
34 =head2 tagfield
36 data_type: 'varchar'
37 default_value: (empty string)
38 is_nullable: 0
39 size: 3
41 =head2 liblibrarian
43 data_type: 'varchar'
44 default_value: (empty string)
45 is_nullable: 0
46 size: 255
48 =head2 libopac
50 data_type: 'varchar'
51 default_value: (empty string)
52 is_nullable: 0
53 size: 255
55 =head2 repeatable
57 data_type: 'tinyint'
58 default_value: 0
59 is_nullable: 0
61 =head2 mandatory
63 data_type: 'tinyint'
64 default_value: 0
65 is_nullable: 0
67 =head2 authorised_value
69 data_type: 'varchar'
70 is_nullable: 1
71 size: 10
73 =cut
75 __PACKAGE__->add_columns(
76 "authtypecode",
78 data_type => "varchar",
79 default_value => "",
80 is_foreign_key => 1,
81 is_nullable => 0,
82 size => 10,
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 },
98 =head1 PRIMARY KEY
100 =over 4
102 =item * L</authtypecode>
104 =item * L</tagfield>
106 =back
108 =cut
110 __PACKAGE__->set_primary_key("authtypecode", "tagfield");
112 =head1 RELATIONS
114 =head2 authtypecode
116 Type: belongs_to
118 Related object: L<Koha::Schema::Result::AuthType>
120 =cut
122 __PACKAGE__->belongs_to(
123 "authtypecode",
124 "Koha::Schema::Result::AuthType",
125 { authtypecode => "authtypecode" },
126 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
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
133 sub koha_object_class {
134 'Koha::Authority::Tag';
136 sub koha_objects_class {
137 'Koha::Authority::Tags';