1 package Koha::Schema::Result::Branch;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Branch
18 __PACKAGE__->table("branches");
25 default_value: (empty string)
31 data_type: 'mediumtext'
36 data_type: 'mediumtext'
41 data_type: 'mediumtext'
46 data_type: 'mediumtext'
57 data_type: 'mediumtext'
62 data_type: 'mediumtext'
72 data_type: 'mediumtext'
77 data_type: 'mediumtext'
82 data_type: 'mediumtext'
87 data_type: 'mediumtext'
109 data_type: 'mediumtext'
119 __PACKAGE__->add_columns(
121 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
123 { data_type => "mediumtext", is_nullable => 0 },
125 { data_type => "mediumtext", is_nullable => 1 },
127 { data_type => "mediumtext", is_nullable => 1 },
129 { data_type => "mediumtext", is_nullable => 1 },
131 { data_type => "varchar", is_nullable => 1, size => 25 },
133 { data_type => "mediumtext", is_nullable => 1 },
135 { data_type => "mediumtext", is_nullable => 1 },
137 { data_type => "text", is_nullable => 1 },
139 { data_type => "mediumtext", is_nullable => 1 },
141 { data_type => "mediumtext", is_nullable => 1 },
143 { data_type => "mediumtext", is_nullable => 1 },
145 { data_type => "mediumtext", is_nullable => 1 },
147 { data_type => "tinyint", is_nullable => 1 },
149 { data_type => "varchar", is_nullable => 1, size => 15 },
151 { data_type => "varchar", is_nullable => 1, size => 100 },
153 { data_type => "mediumtext", is_nullable => 1 },
155 { data_type => "text", is_nullable => 1 },
157 __PACKAGE__->set_primary_key("branchcode");
161 =head2 authorised_values_branches
165 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
169 __PACKAGE__->has_many(
170 "authorised_values_branches",
171 "Koha::Schema::Result::AuthorisedValuesBranch",
172 { "foreign.branchcode" => "self.branchcode" },
173 { cascade_copy => 0, cascade_delete => 0 },
176 =head2 borrower_attribute_types_branches
180 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
184 __PACKAGE__->has_many(
185 "borrower_attribute_types_branches",
186 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
187 { "foreign.b_branchcode" => "self.branchcode" },
188 { cascade_copy => 0, cascade_delete => 0 },
195 Related object: L<Koha::Schema::Result::Borrower>
199 __PACKAGE__->has_many(
201 "Koha::Schema::Result::Borrower",
202 { "foreign.branchcode" => "self.branchcode" },
203 { cascade_copy => 0, cascade_delete => 0 },
206 =head2 branch_borrower_circ_rules
210 Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
214 __PACKAGE__->has_many(
215 "branch_borrower_circ_rules",
216 "Koha::Schema::Result::BranchBorrowerCircRule",
217 { "foreign.branchcode" => "self.branchcode" },
218 { cascade_copy => 0, cascade_delete => 0 },
221 =head2 branch_item_rules
225 Related object: L<Koha::Schema::Result::BranchItemRule>
229 __PACKAGE__->has_many(
231 "Koha::Schema::Result::BranchItemRule",
232 { "foreign.branchcode" => "self.branchcode" },
233 { cascade_copy => 0, cascade_delete => 0 },
236 =head2 branchrelations
240 Related object: L<Koha::Schema::Result::Branchrelation>
244 __PACKAGE__->has_many(
246 "Koha::Schema::Result::Branchrelation",
247 { "foreign.branchcode" => "self.branchcode" },
248 { cascade_copy => 0, cascade_delete => 0 },
251 =head2 branchtransfers_frombranches
255 Related object: L<Koha::Schema::Result::Branchtransfer>
259 __PACKAGE__->has_many(
260 "branchtransfers_frombranches",
261 "Koha::Schema::Result::Branchtransfer",
262 { "foreign.frombranch" => "self.branchcode" },
263 { cascade_copy => 0, cascade_delete => 0 },
266 =head2 branchtransfers_tobranches
270 Related object: L<Koha::Schema::Result::Branchtransfer>
274 __PACKAGE__->has_many(
275 "branchtransfers_tobranches",
276 "Koha::Schema::Result::Branchtransfer",
277 { "foreign.tobranch" => "self.branchcode" },
278 { cascade_copy => 0, cascade_delete => 0 },
281 =head2 categories_branches
285 Related object: L<Koha::Schema::Result::CategoriesBranch>
289 __PACKAGE__->has_many(
290 "categories_branches",
291 "Koha::Schema::Result::CategoriesBranch",
292 { "foreign.branchcode" => "self.branchcode" },
293 { cascade_copy => 0, cascade_delete => 0 },
300 Related object: L<Koha::Schema::Result::CourseItem>
304 __PACKAGE__->has_many(
306 "Koha::Schema::Result::CourseItem",
307 { "foreign.holdingbranch" => "self.branchcode" },
308 { cascade_copy => 0, cascade_delete => 0 },
311 =head2 creator_batches
315 Related object: L<Koha::Schema::Result::CreatorBatch>
319 __PACKAGE__->has_many(
321 "Koha::Schema::Result::CreatorBatch",
322 { "foreign.branch_code" => "self.branchcode" },
323 { cascade_copy => 0, cascade_delete => 0 },
326 =head2 default_branch_circ_rule
330 Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
334 __PACKAGE__->might_have(
335 "default_branch_circ_rule",
336 "Koha::Schema::Result::DefaultBranchCircRule",
337 { "foreign.branchcode" => "self.branchcode" },
338 { cascade_copy => 0, cascade_delete => 0 },
341 =head2 hold_fill_targets
345 Related object: L<Koha::Schema::Result::HoldFillTarget>
349 __PACKAGE__->has_many(
351 "Koha::Schema::Result::HoldFillTarget",
352 { "foreign.source_branchcode" => "self.branchcode" },
353 { cascade_copy => 0, cascade_delete => 0 },
356 =head2 items_homebranches
360 Related object: L<Koha::Schema::Result::Item>
364 __PACKAGE__->has_many(
365 "items_homebranches",
366 "Koha::Schema::Result::Item",
367 { "foreign.homebranch" => "self.branchcode" },
368 { cascade_copy => 0, cascade_delete => 0 },
371 =head2 items_holdingbranches
375 Related object: L<Koha::Schema::Result::Item>
379 __PACKAGE__->has_many(
380 "items_holdingbranches",
381 "Koha::Schema::Result::Item",
382 { "foreign.holdingbranch" => "self.branchcode" },
383 { cascade_copy => 0, cascade_delete => 0 },
390 Related object: L<Koha::Schema::Result::Reserve>
394 __PACKAGE__->has_many(
396 "Koha::Schema::Result::Reserve",
397 { "foreign.branchcode" => "self.branchcode" },
398 { cascade_copy => 0, cascade_delete => 0 },
401 =head2 transport_cost_frombranches
405 Related object: L<Koha::Schema::Result::TransportCost>
409 __PACKAGE__->has_many(
410 "transport_cost_frombranches",
411 "Koha::Schema::Result::TransportCost",
412 { "foreign.frombranch" => "self.branchcode" },
413 { cascade_copy => 0, cascade_delete => 0 },
416 =head2 transport_cost_tobranches
420 Related object: L<Koha::Schema::Result::TransportCost>
424 __PACKAGE__->has_many(
425 "transport_cost_tobranches",
426 "Koha::Schema::Result::TransportCost",
427 { "foreign.tobranch" => "self.branchcode" },
428 { cascade_copy => 0, cascade_delete => 0 },
432 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
433 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BS/6xtFAoMSKsXho4IXXjQ
436 # You can replace this text with custom content, and it will be preserved on regeneration