Bug 8798: DBIx::Class base classes for all Koha tables
[koha_fer] / Koha / Schema / Result / DefaultBranchCircRule.pm
1 package Koha::Schema::Result::DefaultBranchCircRule;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::DefaultBranchCircRule
15
16 =cut
17
18 __PACKAGE__->table("default_branch_circ_rules");
19
20 =head1 ACCESSORS
21
22 =head2 branchcode
23
24   data_type: 'varchar'
25   is_foreign_key: 1
26   is_nullable: 0
27   size: 10
28
29 =head2 maxissueqty
30
31   data_type: 'integer'
32   is_nullable: 1
33
34 =head2 holdallowed
35
36   data_type: 'tinyint'
37   is_nullable: 1
38
39 =head2 returnbranch
40
41   data_type: 'varchar'
42   is_nullable: 1
43   size: 15
44
45 =cut
46
47 __PACKAGE__->add_columns(
48   "branchcode",
49   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
50   "maxissueqty",
51   { data_type => "integer", is_nullable => 1 },
52   "holdallowed",
53   { data_type => "tinyint", is_nullable => 1 },
54   "returnbranch",
55   { data_type => "varchar", is_nullable => 1, size => 15 },
56 );
57 __PACKAGE__->set_primary_key("branchcode");
58
59 =head1 RELATIONS
60
61 =head2 branchcode
62
63 Type: belongs_to
64
65 Related object: L<Koha::Schema::Result::Branch>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "branchcode",
71   "Koha::Schema::Result::Branch",
72   { branchcode => "branchcode" },
73   { on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76
77 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yCrCqkdVhV80/WtxZPK6Kw
79
80
81 # You can replace this text with custom content, and it will be preserved on regeneration
82 1;