Bug 25655: DBIC schema
[srvgit] / Koha / Schema / Result / AqordersClaim.pm
1 use utf8;
2 package Koha::Schema::Result::AqordersClaim;
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::AqordersClaim
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<aqorders_claims>
19
20 =cut
21
22 __PACKAGE__->table("aqorders_claims");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 ID of the claims
33
34 =head2 ordernumber
35
36   data_type: 'integer'
37   is_foreign_key: 1
38   is_nullable: 0
39
40 order linked to this claim
41
42 =head2 claimed_on
43
44   data_type: 'timestamp'
45   datetime_undef_if_invalid: 1
46   default_value: current_timestamp
47   is_nullable: 0
48
49 Date of the claims
50
51 =cut
52
53 __PACKAGE__->add_columns(
54   "id",
55   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
56   "ordernumber",
57   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58   "claimed_on",
59   {
60     data_type => "timestamp",
61     datetime_undef_if_invalid => 1,
62     default_value => \"current_timestamp",
63     is_nullable => 0,
64   },
65 );
66
67 =head1 PRIMARY KEY
68
69 =over 4
70
71 =item * L</id>
72
73 =back
74
75 =cut
76
77 __PACKAGE__->set_primary_key("id");
78
79 =head1 RELATIONS
80
81 =head2 ordernumber
82
83 Type: belongs_to
84
85 Related object: L<Koha::Schema::Result::Aqorder>
86
87 =cut
88
89 __PACKAGE__->belongs_to(
90   "ordernumber",
91   "Koha::Schema::Result::Aqorder",
92   { ordernumber => "ordernumber" },
93   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
94 );
95
96
97 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
98 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4/GYhhysSbrh67vIq67xZw
99
100 sub koha_object_class {
101     'Koha::Acquisition::Order::Claim';
102 }
103 sub koha_objects_class {
104     'Koha::Acquisition::Order::Claims';
105 }
106
107 1;