Line 0
Link Here
|
|
|
1 |
use utf8; |
2 |
package Koha::Schema::Result::HoldGroup; |
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::HoldGroup |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<hold_groups> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("hold_groups"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 hold_group_id |
27 |
|
28 |
data_type: 'integer' |
29 |
extra: {unsigned => 1} |
30 |
is_auto_increment: 1 |
31 |
is_nullable: 0 |
32 |
|
33 |
=cut |
34 |
|
35 |
__PACKAGE__->add_columns( |
36 |
"hold_group_id", |
37 |
{ |
38 |
data_type => "integer", |
39 |
extra => { unsigned => 1 }, |
40 |
is_auto_increment => 1, |
41 |
is_nullable => 0, |
42 |
}, |
43 |
); |
44 |
|
45 |
=head1 PRIMARY KEY |
46 |
|
47 |
=over 4 |
48 |
|
49 |
=item * L</hold_group_id> |
50 |
|
51 |
=back |
52 |
|
53 |
=cut |
54 |
|
55 |
__PACKAGE__->set_primary_key("hold_group_id"); |
56 |
|
57 |
=head1 RELATIONS |
58 |
|
59 |
=head2 old_reserves |
60 |
|
61 |
Type: has_many |
62 |
|
63 |
Related object: L<Koha::Schema::Result::OldReserve> |
64 |
|
65 |
=cut |
66 |
|
67 |
__PACKAGE__->has_many( |
68 |
"old_reserves", |
69 |
"Koha::Schema::Result::OldReserve", |
70 |
{ "foreign.hold_group_id" => "self.hold_group_id" }, |
71 |
{ cascade_copy => 0, cascade_delete => 0 }, |
72 |
); |
73 |
|
74 |
=head2 reserves |
75 |
|
76 |
Type: has_many |
77 |
|
78 |
Related object: L<Koha::Schema::Result::Reserve> |
79 |
|
80 |
=cut |
81 |
|
82 |
__PACKAGE__->has_many( |
83 |
"reserves", |
84 |
"Koha::Schema::Result::Reserve", |
85 |
{ "foreign.hold_group_id" => "self.hold_group_id" }, |
86 |
{ cascade_copy => 0, cascade_delete => 0 }, |
87 |
); |
88 |
|
89 |
|
90 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-08-04 14:43:31 |
91 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5Xzfn2C7H+Z8R9PUBPFkYw |
92 |
|
93 |
|
94 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
95 |
1; |