Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::HoldCancellationRequest; |
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::HoldCancellationRequest |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<hold_cancellation_requests> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("hold_cancellation_requests"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 hold_cancellation_request_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
Unique ID of the cancellation request |
33 |
|
34 |
=head2 hold_id |
35 |
|
36 |
data_type: 'integer' |
37 |
is_nullable: 0 |
38 |
|
39 |
ID of the hold |
40 |
|
41 |
=head2 creation_date |
42 |
|
43 |
data_type: 'timestamp' |
44 |
datetime_undef_if_invalid: 1 |
45 |
is_nullable: 1 |
46 |
|
47 |
Time and date the cancellation request was created |
48 |
|
49 |
=cut |
50 |
|
51 |
__PACKAGE__->add_columns( |
52 |
"hold_cancellation_request_id", |
53 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
54 |
"hold_id", |
55 |
{ data_type => "integer", is_nullable => 0 }, |
56 |
"creation_date", |
57 |
{ |
58 |
data_type => "timestamp", |
59 |
datetime_undef_if_invalid => 1, |
60 |
is_nullable => 1, |
61 |
}, |
62 |
); |
63 |
|
64 |
=head1 PRIMARY KEY |
65 |
|
66 |
=over 4 |
67 |
|
68 |
=item * L</hold_cancellation_request_id> |
69 |
|
70 |
=back |
71 |
|
72 |
=cut |
73 |
|
74 |
__PACKAGE__->set_primary_key("hold_cancellation_request_id"); |
75 |
|
76 |
|
77 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-26 15:06:37 |
78 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wmU51f9/ljDRncAnLEF0yA |
79 |
|
80 |
# FIXME: Revisit after bug 25260 |
81 |
__PACKAGE__->might_have( |
82 |
"hold", |
83 |
"Koha::Schema::Result::Reserve", |
84 |
{ "foreign.reserve_id" => "self.hold_id" }, |
85 |
{ cascade_copy => 0, cascade_delete => 0 }, |
86 |
); |
87 |
|
88 |
sub koha_object_class { |
89 |
'Koha::Hold::CancellationRequest'; |
90 |
} |
91 |
sub koha_objects_class { |
92 |
'Koha::Hold::CancellationRequests'; |
93 |
} |
94 |
|
95 |
1; |