Bug 8798: DBIx::Class base classes for all Koha tables
[koha_fer] / Koha / Schema / Result / AuthTagStructure.pm
1 package Koha::Schema::Result::AuthTagStructure;
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::AuthTagStructure
15
16 =cut
17
18 __PACKAGE__->table("auth_tag_structure");
19
20 =head1 ACCESSORS
21
22 =head2 authtypecode
23
24   data_type: 'varchar'
25   default_value: (empty string)
26   is_foreign_key: 1
27   is_nullable: 0
28   size: 10
29
30 =head2 tagfield
31
32   data_type: 'varchar'
33   default_value: (empty string)
34   is_nullable: 0
35   size: 3
36
37 =head2 liblibrarian
38
39   data_type: 'varchar'
40   default_value: (empty string)
41   is_nullable: 0
42   size: 255
43
44 =head2 libopac
45
46   data_type: 'varchar'
47   default_value: (empty string)
48   is_nullable: 0
49   size: 255
50
51 =head2 repeatable
52
53   data_type: 'tinyint'
54   default_value: 0
55   is_nullable: 0
56
57 =head2 mandatory
58
59   data_type: 'tinyint'
60   default_value: 0
61   is_nullable: 0
62
63 =head2 authorised_value
64
65   data_type: 'varchar'
66   is_nullable: 1
67   size: 10
68
69 =cut
70
71 __PACKAGE__->add_columns(
72   "authtypecode",
73   {
74     data_type => "varchar",
75     default_value => "",
76     is_foreign_key => 1,
77     is_nullable => 0,
78     size => 10,
79   },
80   "tagfield",
81   { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
82   "liblibrarian",
83   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
84   "libopac",
85   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
86   "repeatable",
87   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
88   "mandatory",
89   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
90   "authorised_value",
91   { data_type => "varchar", is_nullable => 1, size => 10 },
92 );
93 __PACKAGE__->set_primary_key("authtypecode", "tagfield");
94
95 =head1 RELATIONS
96
97 =head2 authtypecode
98
99 Type: belongs_to
100
101 Related object: L<Koha::Schema::Result::AuthType>
102
103 =cut
104
105 __PACKAGE__->belongs_to(
106   "authtypecode",
107   "Koha::Schema::Result::AuthType",
108   { authtypecode => "authtypecode" },
109   { on_delete => "CASCADE", on_update => "CASCADE" },
110 );
111
112
113 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EIrlKC3v6sYrPt9F21xeag
115
116
117 # You can replace this text with custom content, and it will be preserved on regeneration
118 1;