2 package Koha::Schema::Result::Branch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Branch
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<branches>
22 __PACKAGE__->table("branches");
29 default_value: (empty string)
35 data_type: 'mediumtext'
40 data_type: 'mediumtext'
45 data_type: 'mediumtext'
50 data_type: 'mediumtext'
61 data_type: 'mediumtext'
66 data_type: 'mediumtext'
76 data_type: 'mediumtext'
81 data_type: 'mediumtext'
86 data_type: 'mediumtext'
91 data_type: 'mediumtext'
94 =head2 branchreturnpath
96 data_type: 'mediumtext'
101 data_type: 'mediumtext'
123 data_type: 'mediumtext'
139 __PACKAGE__->add_columns(
141 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
143 { data_type => "mediumtext", is_nullable => 0 },
145 { data_type => "mediumtext", is_nullable => 1 },
147 { data_type => "mediumtext", is_nullable => 1 },
149 { data_type => "mediumtext", is_nullable => 1 },
151 { data_type => "varchar", is_nullable => 1, size => 25 },
153 { data_type => "mediumtext", is_nullable => 1 },
155 { data_type => "mediumtext", is_nullable => 1 },
157 { data_type => "text", is_nullable => 1 },
159 { data_type => "mediumtext", is_nullable => 1 },
161 { data_type => "mediumtext", is_nullable => 1 },
163 { data_type => "mediumtext", is_nullable => 1 },
165 { data_type => "mediumtext", is_nullable => 1 },
167 { data_type => "mediumtext", is_nullable => 1 },
169 { data_type => "mediumtext", is_nullable => 1 },
171 { data_type => "tinyint", is_nullable => 1 },
173 { data_type => "varchar", is_nullable => 1, size => 15 },
175 { data_type => "varchar", is_nullable => 1, size => 100 },
177 { data_type => "mediumtext", is_nullable => 1 },
179 { data_type => "text", is_nullable => 1 },
181 { data_type => "varchar", is_nullable => 1, size => 255 },
188 =item * L</branchcode>
194 __PACKAGE__->set_primary_key("branchcode");
202 Related object: L<Koha::Schema::Result::Aqbasket>
206 __PACKAGE__->has_many(
208 "Koha::Schema::Result::Aqbasket",
209 { "foreign.branch" => "self.branchcode" },
210 { cascade_copy => 0, cascade_delete => 0 },
213 =head2 article_requests
217 Related object: L<Koha::Schema::Result::ArticleRequest>
221 __PACKAGE__->has_many(
223 "Koha::Schema::Result::ArticleRequest",
224 { "foreign.branchcode" => "self.branchcode" },
225 { cascade_copy => 0, cascade_delete => 0 },
228 =head2 authorised_values_branches
232 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
236 __PACKAGE__->has_many(
237 "authorised_values_branches",
238 "Koha::Schema::Result::AuthorisedValuesBranch",
239 { "foreign.branchcode" => "self.branchcode" },
240 { cascade_copy => 0, cascade_delete => 0 },
243 =head2 borrower_attribute_types_branches
247 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
251 __PACKAGE__->has_many(
252 "borrower_attribute_types_branches",
253 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
254 { "foreign.b_branchcode" => "self.branchcode" },
255 { cascade_copy => 0, cascade_delete => 0 },
262 Related object: L<Koha::Schema::Result::Borrower>
266 __PACKAGE__->has_many(
268 "Koha::Schema::Result::Borrower",
269 { "foreign.branchcode" => "self.branchcode" },
270 { cascade_copy => 0, cascade_delete => 0 },
273 =head2 branch_borrower_circ_rules
277 Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
281 __PACKAGE__->has_many(
282 "branch_borrower_circ_rules",
283 "Koha::Schema::Result::BranchBorrowerCircRule",
284 { "foreign.branchcode" => "self.branchcode" },
285 { cascade_copy => 0, cascade_delete => 0 },
288 =head2 branch_item_rules
292 Related object: L<Koha::Schema::Result::BranchItemRule>
296 __PACKAGE__->has_many(
298 "Koha::Schema::Result::BranchItemRule",
299 { "foreign.branchcode" => "self.branchcode" },
300 { cascade_copy => 0, cascade_delete => 0 },
303 =head2 branchrelations
307 Related object: L<Koha::Schema::Result::Branchrelation>
311 __PACKAGE__->has_many(
313 "Koha::Schema::Result::Branchrelation",
314 { "foreign.branchcode" => "self.branchcode" },
315 { cascade_copy => 0, cascade_delete => 0 },
318 =head2 branchtransfers_frombranches
322 Related object: L<Koha::Schema::Result::Branchtransfer>
326 __PACKAGE__->has_many(
327 "branchtransfers_frombranches",
328 "Koha::Schema::Result::Branchtransfer",
329 { "foreign.frombranch" => "self.branchcode" },
330 { cascade_copy => 0, cascade_delete => 0 },
333 =head2 branchtransfers_tobranches
337 Related object: L<Koha::Schema::Result::Branchtransfer>
341 __PACKAGE__->has_many(
342 "branchtransfers_tobranches",
343 "Koha::Schema::Result::Branchtransfer",
344 { "foreign.tobranch" => "self.branchcode" },
345 { cascade_copy => 0, cascade_delete => 0 },
348 =head2 categories_branches
352 Related object: L<Koha::Schema::Result::CategoriesBranch>
356 __PACKAGE__->has_many(
357 "categories_branches",
358 "Koha::Schema::Result::CategoriesBranch",
359 { "foreign.branchcode" => "self.branchcode" },
360 { cascade_copy => 0, cascade_delete => 0 },
367 Related object: L<Koha::Schema::Result::Collection>
371 __PACKAGE__->has_many(
373 "Koha::Schema::Result::Collection",
374 { "foreign.colBranchcode" => "self.branchcode" },
375 { cascade_copy => 0, cascade_delete => 0 },
382 Related object: L<Koha::Schema::Result::CourseItem>
386 __PACKAGE__->has_many(
388 "Koha::Schema::Result::CourseItem",
389 { "foreign.holdingbranch" => "self.branchcode" },
390 { cascade_copy => 0, cascade_delete => 0 },
393 =head2 creator_batches
397 Related object: L<Koha::Schema::Result::CreatorBatch>
401 __PACKAGE__->has_many(
403 "Koha::Schema::Result::CreatorBatch",
404 { "foreign.branch_code" => "self.branchcode" },
405 { cascade_copy => 0, cascade_delete => 0 },
408 =head2 default_branch_circ_rule
412 Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
416 __PACKAGE__->might_have(
417 "default_branch_circ_rule",
418 "Koha::Schema::Result::DefaultBranchCircRule",
419 { "foreign.branchcode" => "self.branchcode" },
420 { cascade_copy => 0, cascade_delete => 0 },
427 Related object: L<Koha::Schema::Result::EdifactEan>
431 __PACKAGE__->has_many(
433 "Koha::Schema::Result::EdifactEan",
434 { "foreign.branchcode" => "self.branchcode" },
435 { cascade_copy => 0, cascade_delete => 0 },
438 =head2 hold_fill_targets
442 Related object: L<Koha::Schema::Result::HoldFillTarget>
446 __PACKAGE__->has_many(
448 "Koha::Schema::Result::HoldFillTarget",
449 { "foreign.source_branchcode" => "self.branchcode" },
450 { cascade_copy => 0, cascade_delete => 0 },
453 =head2 items_holdingbranches
457 Related object: L<Koha::Schema::Result::Item>
461 __PACKAGE__->has_many(
462 "items_holdingbranches",
463 "Koha::Schema::Result::Item",
464 { "foreign.holdingbranch" => "self.branchcode" },
465 { cascade_copy => 0, cascade_delete => 0 },
468 =head2 items_homebranches
472 Related object: L<Koha::Schema::Result::Item>
476 __PACKAGE__->has_many(
477 "items_homebranches",
478 "Koha::Schema::Result::Item",
479 { "foreign.homebranch" => "self.branchcode" },
480 { cascade_copy => 0, cascade_delete => 0 },
487 Related object: L<Koha::Schema::Result::OpacNews>
491 __PACKAGE__->has_many(
493 "Koha::Schema::Result::OpacNews",
494 { "foreign.branchcode" => "self.branchcode" },
495 { cascade_copy => 0, cascade_delete => 0 },
502 Related object: L<Koha::Schema::Result::Reserve>
506 __PACKAGE__->has_many(
508 "Koha::Schema::Result::Reserve",
509 { "foreign.branchcode" => "self.branchcode" },
510 { cascade_copy => 0, cascade_delete => 0 },
513 =head2 transport_cost_frombranches
517 Related object: L<Koha::Schema::Result::TransportCost>
521 __PACKAGE__->has_many(
522 "transport_cost_frombranches",
523 "Koha::Schema::Result::TransportCost",
524 { "foreign.frombranch" => "self.branchcode" },
525 { cascade_copy => 0, cascade_delete => 0 },
528 =head2 transport_cost_tobranches
532 Related object: L<Koha::Schema::Result::TransportCost>
536 __PACKAGE__->has_many(
537 "transport_cost_tobranches",
538 "Koha::Schema::Result::TransportCost",
539 { "foreign.tobranch" => "self.branchcode" },
540 { cascade_copy => 0, cascade_delete => 0 },
547 Composing rels: L</branchrelations> -> categorycode
551 __PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
554 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-02-06 10:07:25
555 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aq4mf5Dwbd8ps9ANLy8DuQ
558 # You can replace this text with custom code or comments, and it will be preserved on regeneration
560 sub koha_objects_class {