Increment version for 3.22.6 release
[koha.git] / Koha / Schema / Result / Aqbudget.pm
blobfa28dfb91da923946ff1e366aab48fca83c14191
1 use utf8;
2 package Koha::Schema::Result::Aqbudget;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Aqbudget
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbudgets>
20 =cut
22 __PACKAGE__->table("aqbudgets");
24 =head1 ACCESSORS
26 =head2 budget_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 budget_parent_id
34 data_type: 'integer'
35 is_nullable: 1
37 =head2 budget_code
39 data_type: 'varchar'
40 is_nullable: 1
41 size: 30
43 =head2 budget_name
45 data_type: 'varchar'
46 is_nullable: 1
47 size: 80
49 =head2 budget_branchcode
51 data_type: 'varchar'
52 is_nullable: 1
53 size: 10
55 =head2 budget_amount
57 data_type: 'decimal'
58 default_value: 0.000000
59 is_nullable: 1
60 size: [28,6]
62 =head2 budget_encumb
64 data_type: 'decimal'
65 default_value: 0.000000
66 is_nullable: 1
67 size: [28,6]
69 =head2 budget_expend
71 data_type: 'decimal'
72 default_value: 0.000000
73 is_nullable: 1
74 size: [28,6]
76 =head2 budget_notes
78 data_type: 'mediumtext'
79 is_nullable: 1
81 =head2 timestamp
83 data_type: 'timestamp'
84 datetime_undef_if_invalid: 1
85 default_value: current_timestamp
86 is_nullable: 0
88 =head2 budget_period_id
90 data_type: 'integer'
91 is_nullable: 1
93 =head2 sort1_authcat
95 data_type: 'varchar'
96 is_nullable: 1
97 size: 80
99 =head2 sort2_authcat
101 data_type: 'varchar'
102 is_nullable: 1
103 size: 80
105 =head2 budget_owner_id
107 data_type: 'integer'
108 is_nullable: 1
110 =head2 budget_permission
112 data_type: 'integer'
113 default_value: 0
114 is_nullable: 1
116 =cut
118 __PACKAGE__->add_columns(
119 "budget_id",
120 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
121 "budget_parent_id",
122 { data_type => "integer", is_nullable => 1 },
123 "budget_code",
124 { data_type => "varchar", is_nullable => 1, size => 30 },
125 "budget_name",
126 { data_type => "varchar", is_nullable => 1, size => 80 },
127 "budget_branchcode",
128 { data_type => "varchar", is_nullable => 1, size => 10 },
129 "budget_amount",
131 data_type => "decimal",
132 default_value => "0.000000",
133 is_nullable => 1,
134 size => [28, 6],
136 "budget_encumb",
138 data_type => "decimal",
139 default_value => "0.000000",
140 is_nullable => 1,
141 size => [28, 6],
143 "budget_expend",
145 data_type => "decimal",
146 default_value => "0.000000",
147 is_nullable => 1,
148 size => [28, 6],
150 "budget_notes",
151 { data_type => "mediumtext", is_nullable => 1 },
152 "timestamp",
154 data_type => "timestamp",
155 datetime_undef_if_invalid => 1,
156 default_value => \"current_timestamp",
157 is_nullable => 0,
159 "budget_period_id",
160 { data_type => "integer", is_nullable => 1 },
161 "sort1_authcat",
162 { data_type => "varchar", is_nullable => 1, size => 80 },
163 "sort2_authcat",
164 { data_type => "varchar", is_nullable => 1, size => 80 },
165 "budget_owner_id",
166 { data_type => "integer", is_nullable => 1 },
167 "budget_permission",
168 { data_type => "integer", default_value => 0, is_nullable => 1 },
171 =head1 PRIMARY KEY
173 =over 4
175 =item * L</budget_id>
177 =back
179 =cut
181 __PACKAGE__->set_primary_key("budget_id");
183 =head1 RELATIONS
185 =head2 aqbudgetborrowers
187 Type: has_many
189 Related object: L<Koha::Schema::Result::Aqbudgetborrower>
191 =cut
193 __PACKAGE__->has_many(
194 "aqbudgetborrowers",
195 "Koha::Schema::Result::Aqbudgetborrower",
196 { "foreign.budget_id" => "self.budget_id" },
197 { cascade_copy => 0, cascade_delete => 0 },
200 =head2 aqbudgets_plannings
202 Type: has_many
204 Related object: L<Koha::Schema::Result::AqbudgetsPlanning>
206 =cut
208 __PACKAGE__->has_many(
209 "aqbudgets_plannings",
210 "Koha::Schema::Result::AqbudgetsPlanning",
211 { "foreign.budget_id" => "self.budget_id" },
212 { cascade_copy => 0, cascade_delete => 0 },
215 =head2 aqinvoices
217 Type: has_many
219 Related object: L<Koha::Schema::Result::Aqinvoice>
221 =cut
223 __PACKAGE__->has_many(
224 "aqinvoices",
225 "Koha::Schema::Result::Aqinvoice",
226 { "foreign.shipmentcost_budgetid" => "self.budget_id" },
227 { cascade_copy => 0, cascade_delete => 0 },
230 =head2 aqorders
232 Type: has_many
234 Related object: L<Koha::Schema::Result::Aqorder>
236 =cut
238 __PACKAGE__->has_many(
239 "aqorders",
240 "Koha::Schema::Result::Aqorder",
241 { "foreign.budget_id" => "self.budget_id" },
242 { cascade_copy => 0, cascade_delete => 0 },
245 =head2 suggestions
247 Type: has_many
249 Related object: L<Koha::Schema::Result::Suggestion>
251 =cut
253 __PACKAGE__->has_many(
254 "suggestions",
255 "Koha::Schema::Result::Suggestion",
256 { "foreign.budgetid" => "self.budget_id" },
257 { cascade_copy => 0, cascade_delete => 0 },
260 =head2 borrowernumbers
262 Type: many_to_many
264 Composing rels: L</aqbudgetborrowers> -> borrowernumber
266 =cut
268 __PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
271 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-09 15:51:54
272 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZKnWPCMNFUm/TzeBxeDZA
275 # You can replace this text with custom content, and it will be preserved on regeneration