View | Details | Raw Unified | Return to bug 18925
Collapse All | Expand All

(-)a/Koha/Schema/Result/BranchBorrowerCircRule.pm (-122 lines)
Lines 1-122 Link Here
1
use utf8;
2
package Koha::Schema::Result::BranchBorrowerCircRule;
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::BranchBorrowerCircRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<branch_borrower_circ_rules>
19
20
=cut
21
22
__PACKAGE__->table("branch_borrower_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 categorycode
34
35
  data_type: 'varchar'
36
  is_foreign_key: 1
37
  is_nullable: 0
38
  size: 10
39
40
=head2 maxissueqty
41
42
  data_type: 'integer'
43
  is_nullable: 1
44
45
=head2 maxonsiteissueqty
46
47
  data_type: 'integer'
48
  is_nullable: 1
49
50
=head2 max_holds
51
52
  data_type: 'integer'
53
  is_nullable: 1
54
55
=cut
56
57
__PACKAGE__->add_columns(
58
  "branchcode",
59
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
60
  "categorycode",
61
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
62
  "maxissueqty",
63
  { data_type => "integer", is_nullable => 1 },
64
  "maxonsiteissueqty",
65
  { data_type => "integer", is_nullable => 1 },
66
  "max_holds",
67
  { data_type => "integer", is_nullable => 1 },
68
);
69
70
=head1 PRIMARY KEY
71
72
=over 4
73
74
=item * L</categorycode>
75
76
=item * L</branchcode>
77
78
=back
79
80
=cut
81
82
__PACKAGE__->set_primary_key("categorycode", "branchcode");
83
84
=head1 RELATIONS
85
86
=head2 branchcode
87
88
Type: belongs_to
89
90
Related object: L<Koha::Schema::Result::Branch>
91
92
=cut
93
94
__PACKAGE__->belongs_to(
95
  "branchcode",
96
  "Koha::Schema::Result::Branch",
97
  { branchcode => "branchcode" },
98
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99
);
100
101
=head2 categorycode
102
103
Type: belongs_to
104
105
Related object: L<Koha::Schema::Result::Category>
106
107
=cut
108
109
__PACKAGE__->belongs_to(
110
  "categorycode",
111
  "Koha::Schema::Result::Category",
112
  { categorycode => "categorycode" },
113
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
114
);
115
116
117
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-27 14:54:53
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sMWYrZafhg3InWiWPZ2Axw
119
120
121
# You can replace this text with custom content, and it will be preserved on regeneration
122
1;
(-)a/Koha/Schema/Result/DefaultBorrowerCircRule.pm (-97 lines)
Lines 1-96 Link Here
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
=head2 max_holds
44
45
  data_type: 'integer'
46
  is_nullable: 1
47
48
=cut
49
50
__PACKAGE__->add_columns(
51
  "categorycode",
52
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
53
  "maxissueqty",
54
  { data_type => "integer", is_nullable => 1 },
55
  "maxonsiteissueqty",
56
  { data_type => "integer", is_nullable => 1 },
57
  "max_holds",
58
  { data_type => "integer", is_nullable => 1 },
59
);
60
61
=head1 PRIMARY KEY
62
63
=over 4
64
65
=item * L</categorycode>
66
67
=back
68
69
=cut
70
71
__PACKAGE__->set_primary_key("categorycode");
72
73
=head1 RELATIONS
74
75
=head2 categorycode
76
77
Type: belongs_to
78
79
Related object: L<Koha::Schema::Result::Category>
80
81
=cut
82
83
__PACKAGE__->belongs_to(
84
  "categorycode",
85
  "Koha::Schema::Result::Category",
86
  { categorycode => "categorycode" },
87
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
88
);
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-27 14:54:53
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aETMg1bzMvdgf/J/Zbu4+Q
93
94
95
# You can replace this text with custom content, and it will be preserved on regeneration
96
1;
97
- 

Return to bug 18925