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 |
default_value: current_timestamp |
46 |
is_nullable: 0 |
47 |
|
48 |
Time and date the cancellation request was created |
49 |
|
50 |
=cut |
51 |
|
52 |
__PACKAGE__->add_columns( |
53 |
"hold_cancellation_request_id", |
54 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
55 |
"hold_id", |
56 |
{ data_type => "integer", is_nullable => 0 }, |
57 |
"creation_date", |
58 |
{ |
59 |
data_type => "timestamp", |
60 |
datetime_undef_if_invalid => 1, |
61 |
default_value => \"current_timestamp", |
62 |
is_nullable => 0, |
63 |
}, |
64 |
); |
65 |
|
66 |
=head1 PRIMARY KEY |
67 |
|
68 |
=over 4 |
69 |
|
70 |
=item * L</hold_cancellation_request_id> |
71 |
|
72 |
=back |
73 |
|
74 |
=cut |
75 |
|
76 |
__PACKAGE__->set_primary_key("hold_cancellation_request_id"); |
77 |
|
78 |
|
79 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-08 14:24:57 |
80 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g+XrDWjaRri+Y0TESDFuBQ |
81 |
|
82 |
# FIXME: Revisit after bug 25260 |
83 |
__PACKAGE__->might_have( |
84 |
"hold", |
85 |
"Koha::Schema::Result::Reserve", |
86 |
{ "foreign.reserve_id" => "self.hold_id" }, |
87 |
{ cascade_copy => 0, cascade_delete => 0 }, |
88 |
); |
89 |
|
90 |
sub koha_object_class { |
91 |
'Koha::Hold::CancellationRequest'; |
92 |
} |
93 |
sub koha_objects_class { |
94 |
'Koha::Hold::CancellationRequests'; |
95 |
} |
96 |
|
97 |
1; |