Bug 26524: Add Koha::Acquisition::Basket->orders
[koha.git] / Koha / Schema / Result / ItemtypesBranch.pm
1 use utf8;
2 package Koha::Schema::Result::ItemtypesBranch;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::ItemtypesBranch
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<itemtypes_branches>
19
20 =cut
21
22 __PACKAGE__->table("itemtypes_branches");
23
24 =head1 ACCESSORS
25
26 =head2 itemtype
27
28   data_type: 'varchar'
29   is_foreign_key: 1
30   is_nullable: 0
31   size: 10
32
33 =head2 branchcode
34
35   data_type: 'varchar'
36   is_foreign_key: 1
37   is_nullable: 0
38   size: 10
39
40 =cut
41
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 },
47 );
48
49 =head1 RELATIONS
50
51 =head2 branchcode
52
53 Type: belongs_to
54
55 Related object: L<Koha::Schema::Result::Branch>
56
57 =cut
58
59 __PACKAGE__->belongs_to(
60   "branchcode",
61   "Koha::Schema::Result::Branch",
62   { branchcode => "branchcode" },
63   { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
64 );
65
66 =head2 itemtype
67
68 Type: belongs_to
69
70 Related object: L<Koha::Schema::Result::Itemtype>
71
72 =cut
73
74 __PACKAGE__->belongs_to(
75   "itemtype",
76   "Koha::Schema::Result::Itemtype",
77   { itemtype => "itemtype" },
78   { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
79 );
80
81
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
84
85
86 # You can replace this text with custom code or comments, and it will be preserved on regeneration
87 1;