Bug 18925: (QA follow-up) Remove weird 'Null' values for integer column
[koha.git] / Koha / Schema / Result / DefaultBorrowerCircRule.pm
1 use utf8;
2 package Koha::Schema::Result::DefaultBorrowerCircRule;
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::DefaultBorrowerCircRule
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<default_borrower_circ_rules>
19
20 =cut
21
22 __PACKAGE__->table("default_borrower_circ_rules");
23
24 =head1 ACCESSORS
25
26 =head2 categorycode
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 =cut
44
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 },
52 );
53
54 =head1 PRIMARY KEY
55
56 =over 4
57
58 =item * L</categorycode>
59
60 =back
61
62 =cut
63
64 __PACKAGE__->set_primary_key("categorycode");
65
66 =head1 RELATIONS
67
68 =head2 categorycode
69
70 Type: belongs_to
71
72 Related object: L<Koha::Schema::Result::Category>
73
74 =cut
75
76 __PACKAGE__->belongs_to(
77   "categorycode",
78   "Koha::Schema::Result::Category",
79   { categorycode => "categorycode" },
80   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
81 );
82
83
84 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-05 14:29:17
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PIjw7tbrnnAgXDlxiX9cpA
86
87
88 # You can replace this text with custom content, and it will be preserved on regeneration
89 1;