Bug 18925: DBRev 18.12.00.020
[koha.git] / Koha / Schema / Result / DefaultBranchCircRule.pm
1 use utf8;
2 package Koha::Schema::Result::DefaultBranchCircRule;
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::DefaultBranchCircRule
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<default_branch_circ_rules>
19
20 =cut
21
22 __PACKAGE__->table("default_branch_circ_rules");
23
24 =head1 ACCESSORS
25
26 =head2 branchcode
27
28   data_type: 'varchar'
29   is_foreign_key: 1
30   is_nullable: 0
31   size: 10
32
33 =head2 holdallowed
34
35   data_type: 'tinyint'
36   is_nullable: 1
37
38 =head2 hold_fulfillment_policy
39
40   data_type: 'enum'
41   default_value: 'any'
42   extra: {list => ["any","homebranch","holdingbranch"]}
43   is_nullable: 0
44
45 =head2 returnbranch
46
47   data_type: 'varchar'
48   is_nullable: 1
49   size: 15
50
51 =cut
52
53 __PACKAGE__->add_columns(
54   "branchcode",
55   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
56   "holdallowed",
57   { data_type => "tinyint", is_nullable => 1 },
58   "hold_fulfillment_policy",
59   {
60     data_type => "enum",
61     default_value => "any",
62     extra => { list => ["any", "homebranch", "holdingbranch"] },
63     is_nullable => 0,
64   },
65   "returnbranch",
66   { data_type => "varchar", is_nullable => 1, size => 15 },
67 );
68
69 =head1 PRIMARY KEY
70
71 =over 4
72
73 =item * L</branchcode>
74
75 =back
76
77 =cut
78
79 __PACKAGE__->set_primary_key("branchcode");
80
81 =head1 RELATIONS
82
83 =head2 branchcode
84
85 Type: belongs_to
86
87 Related object: L<Koha::Schema::Result::Branch>
88
89 =cut
90
91 __PACKAGE__->belongs_to(
92   "branchcode",
93   "Koha::Schema::Result::Branch",
94   { branchcode => "branchcode" },
95   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96 );
97
98
99 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-05 20:42:53
100 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SYfKl5LgCoDZVhPooF55SA
101
102
103 # You can replace this text with custom content, and it will be preserved on regeneration
104 1;