Bug 23753: Add missing humanMsg library to pages using background job JavaScript
[koha.git] / Koha / Schema / Result / ItemtypesBranch.pm
blob9c54614440c7dc0dc824bc75bf3ea3f17297f38a
1 use utf8;
2 package Koha::Schema::Result::ItemtypesBranch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ItemtypesBranch
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<itemtypes_branches>
20 =cut
22 __PACKAGE__->table("itemtypes_branches");
24 =head1 ACCESSORS
26 =head2 itemtype
28 data_type: 'varchar'
29 is_foreign_key: 1
30 is_nullable: 0
31 size: 10
33 =head2 branchcode
35 data_type: 'varchar'
36 is_foreign_key: 1
37 is_nullable: 0
38 size: 10
40 =cut
42 __PACKAGE__->add_columns(
43 "itemtype",
44 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
45 "branchcode",
46 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
49 =head1 RELATIONS
51 =head2 branchcode
53 Type: belongs_to
55 Related object: L<Koha::Schema::Result::Branch>
57 =cut
59 __PACKAGE__->belongs_to(
60 "branchcode",
61 "Koha::Schema::Result::Branch",
62 { branchcode => "branchcode" },
63 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
66 =head2 itemtype
68 Type: belongs_to
70 Related object: L<Koha::Schema::Result::Itemtype>
72 =cut
74 __PACKAGE__->belongs_to(
75 "itemtype",
76 "Koha::Schema::Result::Itemtype",
77 { itemtype => "itemtype" },
78 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
82 # Created by DBIx::Class::Schema::Loader v0.07048 @ 2019-07-04 04:56:48
83 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cBTswjKV8VWN1iueB+PygQ
86 # You can replace this text with custom code or comments, and it will be preserved on regeneration