Bug 12267 - Update DB Schema files
[koha.git] / Koha / Schema / Result / BorrowerAttributeType.pm
1 use utf8;
2 package Koha::Schema::Result::BorrowerAttributeType;
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::BorrowerAttributeType
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<borrower_attribute_types>
19
20 =cut
21
22 __PACKAGE__->table("borrower_attribute_types");
23
24 =head1 ACCESSORS
25
26 =head2 code
27
28   data_type: 'varchar'
29   is_nullable: 0
30   size: 10
31
32 =head2 description
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 255
37
38 =head2 repeatable
39
40   data_type: 'tinyint'
41   default_value: 0
42   is_nullable: 0
43
44 =head2 unique_id
45
46   data_type: 'tinyint'
47   default_value: 0
48   is_nullable: 0
49
50 =head2 opac_display
51
52   data_type: 'tinyint'
53   default_value: 0
54   is_nullable: 0
55
56 =head2 staff_searchable
57
58   data_type: 'tinyint'
59   default_value: 0
60   is_nullable: 0
61
62 =head2 authorised_value_category
63
64   data_type: 'varchar'
65   is_nullable: 1
66   size: 32
67
68 =head2 display_checkout
69
70   data_type: 'tinyint'
71   default_value: 0
72   is_nullable: 0
73
74 =head2 category_code
75
76   data_type: 'varchar'
77   is_nullable: 1
78   size: 10
79
80 =head2 class
81
82   data_type: 'varchar'
83   default_value: (empty string)
84   is_nullable: 0
85   size: 255
86
87 =cut
88
89 __PACKAGE__->add_columns(
90   "code",
91   { data_type => "varchar", is_nullable => 0, size => 10 },
92   "description",
93   { data_type => "varchar", is_nullable => 0, size => 255 },
94   "repeatable",
95   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
96   "unique_id",
97   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
98   "opac_display",
99   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
100   "staff_searchable",
101   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
102   "authorised_value_category",
103   { data_type => "varchar", is_nullable => 1, size => 32 },
104   "display_checkout",
105   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106   "category_code",
107   { data_type => "varchar", is_nullable => 1, size => 10 },
108   "class",
109   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
110 );
111
112 =head1 PRIMARY KEY
113
114 =over 4
115
116 =item * L</code>
117
118 =back
119
120 =cut
121
122 __PACKAGE__->set_primary_key("code");
123
124 =head1 RELATIONS
125
126 =head2 borrower_attribute_types_branches
127
128 Type: has_many
129
130 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
131
132 =cut
133
134 __PACKAGE__->has_many(
135   "borrower_attribute_types_branches",
136   "Koha::Schema::Result::BorrowerAttributeTypesBranch",
137   { "foreign.bat_code" => "self.code" },
138   { cascade_copy => 0, cascade_delete => 0 },
139 );
140
141 =head2 borrower_attributes
142
143 Type: has_many
144
145 Related object: L<Koha::Schema::Result::BorrowerAttribute>
146
147 =cut
148
149 __PACKAGE__->has_many(
150   "borrower_attributes",
151   "Koha::Schema::Result::BorrowerAttribute",
152   { "foreign.code" => "self.code" },
153   { cascade_copy => 0, cascade_delete => 0 },
154 );
155
156
157 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 18:09:15
158 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KzCA3jRyp/uqYdrHFXaw7Q
159
160
161 # You can replace this text with custom content, and it will be preserved on regeneration
162 1;