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)
71 data_type: 'mediumtext'
94 =head2 branchreturnpath
101 data_type: 'longtext'
123 data_type: 'longtext'
128 data_type: 'mediumtext'
145 __PACKAGE__->add_columns(
147 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
149 { data_type => "longtext", is_nullable => 0 },
151 { data_type => "longtext", is_nullable => 1 },
153 { data_type => "longtext", is_nullable => 1 },
155 { data_type => "longtext", is_nullable => 1 },
157 { data_type => "varchar", is_nullable => 1, size => 25 },
159 { data_type => "longtext", is_nullable => 1 },
161 { data_type => "longtext", is_nullable => 1 },
163 { data_type => "mediumtext", is_nullable => 1 },
165 { data_type => "longtext", is_nullable => 1 },
167 { data_type => "longtext", is_nullable => 1 },
169 { data_type => "longtext", is_nullable => 1 },
171 { data_type => "longtext", is_nullable => 1 },
173 { data_type => "longtext", is_nullable => 1 },
175 { data_type => "longtext", is_nullable => 1 },
177 { data_type => "tinyint", is_nullable => 1 },
179 { data_type => "varchar", is_nullable => 1, size => 15 },
181 { data_type => "varchar", is_nullable => 1, size => 100 },
183 { data_type => "longtext", is_nullable => 1 },
185 { data_type => "mediumtext", is_nullable => 1 },
187 { data_type => "varchar", is_nullable => 1, size => 255 },
189 { data_type => "varchar", is_nullable => 1, size => 16 },
196 =item * L</branchcode>
202 __PACKAGE__->set_primary_key("branchcode");
210 Related object: L<Koha::Schema::Result::Aqbasket>
214 __PACKAGE__->has_many(
216 "Koha::Schema::Result::Aqbasket",
217 { "foreign.branch" => "self.branchcode" },
218 { cascade_copy => 0, cascade_delete => 0 },
221 =head2 article_requests
225 Related object: L<Koha::Schema::Result::ArticleRequest>
229 __PACKAGE__->has_many(
231 "Koha::Schema::Result::ArticleRequest",
232 { "foreign.branchcode" => "self.branchcode" },
233 { cascade_copy => 0, cascade_delete => 0 },
236 =head2 authorised_values_branches
240 Related object: L<Koha::Schema::Result::AuthorisedValuesBranch>
244 __PACKAGE__->has_many(
245 "authorised_values_branches",
246 "Koha::Schema::Result::AuthorisedValuesBranch",
247 { "foreign.branchcode" => "self.branchcode" },
248 { cascade_copy => 0, cascade_delete => 0 },
251 =head2 borrower_attribute_types_branches
255 Related object: L<Koha::Schema::Result::BorrowerAttributeTypesBranch>
259 __PACKAGE__->has_many(
260 "borrower_attribute_types_branches",
261 "Koha::Schema::Result::BorrowerAttributeTypesBranch",
262 { "foreign.b_branchcode" => "self.branchcode" },
263 { cascade_copy => 0, cascade_delete => 0 },
270 Related object: L<Koha::Schema::Result::Borrower>
274 __PACKAGE__->has_many(
276 "Koha::Schema::Result::Borrower",
277 { "foreign.branchcode" => "self.branchcode" },
278 { cascade_copy => 0, cascade_delete => 0 },
281 =head2 branch_borrower_circ_rules
285 Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
289 __PACKAGE__->has_many(
290 "branch_borrower_circ_rules",
291 "Koha::Schema::Result::BranchBorrowerCircRule",
292 { "foreign.branchcode" => "self.branchcode" },
293 { cascade_copy => 0, cascade_delete => 0 },
296 =head2 branch_item_rules
300 Related object: L<Koha::Schema::Result::BranchItemRule>
304 __PACKAGE__->has_many(
306 "Koha::Schema::Result::BranchItemRule",
307 { "foreign.branchcode" => "self.branchcode" },
308 { cascade_copy => 0, cascade_delete => 0 },
311 =head2 branchtransfers_frombranches
315 Related object: L<Koha::Schema::Result::Branchtransfer>
319 __PACKAGE__->has_many(
320 "branchtransfers_frombranches",
321 "Koha::Schema::Result::Branchtransfer",
322 { "foreign.frombranch" => "self.branchcode" },
323 { cascade_copy => 0, cascade_delete => 0 },
326 =head2 branchtransfers_tobranches
330 Related object: L<Koha::Schema::Result::Branchtransfer>
334 __PACKAGE__->has_many(
335 "branchtransfers_tobranches",
336 "Koha::Schema::Result::Branchtransfer",
337 { "foreign.tobranch" => "self.branchcode" },
338 { cascade_copy => 0, cascade_delete => 0 },
341 =head2 categories_branches
345 Related object: L<Koha::Schema::Result::CategoriesBranch>
349 __PACKAGE__->has_many(
350 "categories_branches",
351 "Koha::Schema::Result::CategoriesBranch",
352 { "foreign.branchcode" => "self.branchcode" },
353 { cascade_copy => 0, cascade_delete => 0 },
356 =head2 club_enrollments
360 Related object: L<Koha::Schema::Result::ClubEnrollment>
364 __PACKAGE__->has_many(
366 "Koha::Schema::Result::ClubEnrollment",
367 { "foreign.branchcode" => "self.branchcode" },
368 { cascade_copy => 0, cascade_delete => 0 },
371 =head2 club_templates
375 Related object: L<Koha::Schema::Result::ClubTemplate>
379 __PACKAGE__->has_many(
381 "Koha::Schema::Result::ClubTemplate",
382 { "foreign.branchcode" => "self.branchcode" },
383 { cascade_copy => 0, cascade_delete => 0 },
390 Related object: L<Koha::Schema::Result::Club>
394 __PACKAGE__->has_many(
396 "Koha::Schema::Result::Club",
397 { "foreign.branchcode" => "self.branchcode" },
398 { cascade_copy => 0, cascade_delete => 0 },
405 Related object: L<Koha::Schema::Result::Collection>
409 __PACKAGE__->has_many(
411 "Koha::Schema::Result::Collection",
412 { "foreign.colBranchcode" => "self.branchcode" },
413 { cascade_copy => 0, cascade_delete => 0 },
420 Related object: L<Koha::Schema::Result::CourseItem>
424 __PACKAGE__->has_many(
426 "Koha::Schema::Result::CourseItem",
427 { "foreign.holdingbranch" => "self.branchcode" },
428 { cascade_copy => 0, cascade_delete => 0 },
431 =head2 creator_batches
435 Related object: L<Koha::Schema::Result::CreatorBatch>
439 __PACKAGE__->has_many(
441 "Koha::Schema::Result::CreatorBatch",
442 { "foreign.branch_code" => "self.branchcode" },
443 { cascade_copy => 0, cascade_delete => 0 },
446 =head2 default_branch_circ_rule
450 Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
454 __PACKAGE__->might_have(
455 "default_branch_circ_rule",
456 "Koha::Schema::Result::DefaultBranchCircRule",
457 { "foreign.branchcode" => "self.branchcode" },
458 { cascade_copy => 0, cascade_delete => 0 },
465 Related object: L<Koha::Schema::Result::EdifactEan>
469 __PACKAGE__->has_many(
471 "Koha::Schema::Result::EdifactEan",
472 { "foreign.branchcode" => "self.branchcode" },
473 { cascade_copy => 0, cascade_delete => 0 },
476 =head2 hold_fill_targets
480 Related object: L<Koha::Schema::Result::HoldFillTarget>
484 __PACKAGE__->has_many(
486 "Koha::Schema::Result::HoldFillTarget",
487 { "foreign.source_branchcode" => "self.branchcode" },
488 { cascade_copy => 0, cascade_delete => 0 },
495 Related object: L<Koha::Schema::Result::Illrequest>
499 __PACKAGE__->has_many(
501 "Koha::Schema::Result::Illrequest",
502 { "foreign.branchcode" => "self.branchcode" },
503 { cascade_copy => 0, cascade_delete => 0 },
506 =head2 items_holdingbranches
510 Related object: L<Koha::Schema::Result::Item>
514 __PACKAGE__->has_many(
515 "items_holdingbranches",
516 "Koha::Schema::Result::Item",
517 { "foreign.holdingbranch" => "self.branchcode" },
518 { cascade_copy => 0, cascade_delete => 0 },
521 =head2 items_homebranches
525 Related object: L<Koha::Schema::Result::Item>
529 __PACKAGE__->has_many(
530 "items_homebranches",
531 "Koha::Schema::Result::Item",
532 { "foreign.homebranch" => "self.branchcode" },
533 { cascade_copy => 0, cascade_delete => 0 },
536 =head2 library_groups
540 Related object: L<Koha::Schema::Result::LibraryGroup>
544 __PACKAGE__->has_many(
546 "Koha::Schema::Result::LibraryGroup",
547 { "foreign.branchcode" => "self.branchcode" },
548 { cascade_copy => 0, cascade_delete => 0 },
555 Related object: L<Koha::Schema::Result::OpacNews>
559 __PACKAGE__->has_many(
561 "Koha::Schema::Result::OpacNews",
562 { "foreign.branchcode" => "self.branchcode" },
563 { cascade_copy => 0, cascade_delete => 0 },
570 Related object: L<Koha::Schema::Result::Reserve>
574 __PACKAGE__->has_many(
576 "Koha::Schema::Result::Reserve",
577 { "foreign.branchcode" => "self.branchcode" },
578 { cascade_copy => 0, cascade_delete => 0 },
581 =head2 transport_cost_frombranches
585 Related object: L<Koha::Schema::Result::TransportCost>
589 __PACKAGE__->has_many(
590 "transport_cost_frombranches",
591 "Koha::Schema::Result::TransportCost",
592 { "foreign.frombranch" => "self.branchcode" },
593 { cascade_copy => 0, cascade_delete => 0 },
596 =head2 transport_cost_tobranches
600 Related object: L<Koha::Schema::Result::TransportCost>
604 __PACKAGE__->has_many(
605 "transport_cost_tobranches",
606 "Koha::Schema::Result::TransportCost",
607 { "foreign.tobranch" => "self.branchcode" },
608 { cascade_copy => 0, cascade_delete => 0 },
612 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
613 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QOMUFz2EjvAVWCkIpNmvtg
616 # You can replace this text with custom code or comments, and it will be preserved on regeneration
618 sub koha_objects_class {