Bug 17855 - Followup patch following requests in comments 176 and 177
[koha.git] / Koha / Schema / Result / DefaultBorrowerCircRule.pm
blob87bf6810ac26c09be81e4ec0d58b30305d0be14e
1 use utf8;
2 package Koha::Schema::Result::DefaultBorrowerCircRule;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::DefaultBorrowerCircRule
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<default_borrower_circ_rules>
20 =cut
22 __PACKAGE__->table("default_borrower_circ_rules");
24 =head1 ACCESSORS
26 =head2 categorycode
28 data_type: 'varchar'
29 is_foreign_key: 1
30 is_nullable: 0
31 size: 10
33 =head2 maxissueqty
35 data_type: 'integer'
36 is_nullable: 1
38 =head2 maxonsiteissueqty
40 data_type: 'integer'
41 is_nullable: 1
43 =cut
45 __PACKAGE__->add_columns(
46 "categorycode",
47 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
48 "maxissueqty",
49 { data_type => "integer", is_nullable => 1 },
50 "maxonsiteissueqty",
51 { data_type => "integer", is_nullable => 1 },
54 =head1 PRIMARY KEY
56 =over 4
58 =item * L</categorycode>
60 =back
62 =cut
64 __PACKAGE__->set_primary_key("categorycode");
66 =head1 RELATIONS
68 =head2 categorycode
70 Type: belongs_to
72 Related object: L<Koha::Schema::Result::Category>
74 =cut
76 __PACKAGE__->belongs_to(
77 "categorycode",
78 "Koha::Schema::Result::Category",
79 { categorycode => "categorycode" },
80 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-05-13 17:48:39
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EQ8PdQhM6+5K582+AL5ZXQ
88 # You can replace this text with custom content, and it will be preserved on regeneration