Bug 15533 - DBRev - Update OldReserve schema file to match database schema
[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 maxissueqty
34
35   data_type: 'integer'
36   is_nullable: 1
37
38 =head2 maxonsiteissueqty
39
40   data_type: 'integer'
41   is_nullable: 1
42
43 =head2 holdallowed
44
45   data_type: 'tinyint'
46   is_nullable: 1
47
48 =head2 hold_fulfillment_policy
49
50   data_type: 'enum'
51   default_value: 'any'
52   extra: {list => ["any","homebranch","holdingbranch"]}
53   is_nullable: 0
54
55 =head2 returnbranch
56
57   data_type: 'varchar'
58   is_nullable: 1
59   size: 15
60
61 =cut
62
63 __PACKAGE__->add_columns(
64   "branchcode",
65   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
66   "maxissueqty",
67   { data_type => "integer", is_nullable => 1 },
68   "maxonsiteissueqty",
69   { data_type => "integer", is_nullable => 1 },
70   "holdallowed",
71   { data_type => "tinyint", is_nullable => 1 },
72   "hold_fulfillment_policy",
73   {
74     data_type => "enum",
75     default_value => "any",
76     extra => { list => ["any", "homebranch", "holdingbranch"] },
77     is_nullable => 0,
78   },
79   "returnbranch",
80   { data_type => "varchar", is_nullable => 1, size => 15 },
81 );
82
83 =head1 PRIMARY KEY
84
85 =over 4
86
87 =item * L</branchcode>
88
89 =back
90
91 =cut
92
93 __PACKAGE__->set_primary_key("branchcode");
94
95 =head1 RELATIONS
96
97 =head2 branchcode
98
99 Type: belongs_to
100
101 Related object: L<Koha::Schema::Result::Branch>
102
103 =cut
104
105 __PACKAGE__->belongs_to(
106   "branchcode",
107   "Koha::Schema::Result::Branch",
108   { branchcode => "branchcode" },
109   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
110 );
111
112
113 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wnrxD1/tp8X01YHmys02lg
115
116
117 # You can replace this text with custom content, and it will be preserved on regeneration
118 1;