Bug 11351 - Add support for SIP2 media types
[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 holdallowed
39
40   data_type: 'tinyint'
41   is_nullable: 1
42
43 =head2 returnbranch
44
45   data_type: 'varchar'
46   is_nullable: 1
47   size: 15
48
49 =cut
50
51 __PACKAGE__->add_columns(
52   "branchcode",
53   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
54   "maxissueqty",
55   { data_type => "integer", is_nullable => 1 },
56   "holdallowed",
57   { data_type => "tinyint", is_nullable => 1 },
58   "returnbranch",
59   { data_type => "varchar", is_nullable => 1, size => 15 },
60 );
61
62 =head1 PRIMARY KEY
63
64 =over 4
65
66 =item * L</branchcode>
67
68 =back
69
70 =cut
71
72 __PACKAGE__->set_primary_key("branchcode");
73
74 =head1 RELATIONS
75
76 =head2 branchcode
77
78 Type: belongs_to
79
80 Related object: L<Koha::Schema::Result::Branch>
81
82 =cut
83
84 __PACKAGE__->belongs_to(
85   "branchcode",
86   "Koha::Schema::Result::Branch",
87   { branchcode => "branchcode" },
88   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89 );
90
91
92 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Uw1Y82CgbAY8ndLOucN70g
94
95
96 # You can replace this text with custom content, and it will be preserved on regeneration
97 1;