Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::AqbooksellerIssue; |
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::AqbooksellerIssue |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<aqbookseller_issues> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("aqbookseller_issues"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 issue_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
primary key and unique identifier assigned by Koha |
33 |
|
34 |
=head2 vendor_id |
35 |
|
36 |
data_type: 'integer' |
37 |
is_foreign_key: 1 |
38 |
is_nullable: 0 |
39 |
|
40 |
link to the vendor |
41 |
|
42 |
=head2 type |
43 |
|
44 |
data_type: 'varchar' |
45 |
is_nullable: 1 |
46 |
size: 80 |
47 |
|
48 |
type of the issue, authorised value VENDOR_ISSUE_TYPE |
49 |
|
50 |
=head2 started_on |
51 |
|
52 |
data_type: 'date' |
53 |
datetime_undef_if_invalid: 1 |
54 |
is_nullable: 1 |
55 |
|
56 |
start of the issue |
57 |
|
58 |
=head2 ended_on |
59 |
|
60 |
data_type: 'date' |
61 |
datetime_undef_if_invalid: 1 |
62 |
is_nullable: 1 |
63 |
|
64 |
end of the issue |
65 |
|
66 |
=head2 notes |
67 |
|
68 |
data_type: 'longtext' |
69 |
is_nullable: 1 |
70 |
|
71 |
notes |
72 |
|
73 |
=cut |
74 |
|
75 |
__PACKAGE__->add_columns( |
76 |
"issue_id", |
77 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
78 |
"vendor_id", |
79 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
80 |
"type", |
81 |
{ data_type => "varchar", is_nullable => 1, size => 80 }, |
82 |
"started_on", |
83 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
84 |
"ended_on", |
85 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
86 |
"notes", |
87 |
{ data_type => "longtext", is_nullable => 1 }, |
88 |
); |
89 |
|
90 |
=head1 PRIMARY KEY |
91 |
|
92 |
=over 4 |
93 |
|
94 |
=item * L</issue_id> |
95 |
|
96 |
=back |
97 |
|
98 |
=cut |
99 |
|
100 |
__PACKAGE__->set_primary_key("issue_id"); |
101 |
|
102 |
=head1 RELATIONS |
103 |
|
104 |
=head2 vendor |
105 |
|
106 |
Type: belongs_to |
107 |
|
108 |
Related object: L<Koha::Schema::Result::Aqbookseller> |
109 |
|
110 |
=cut |
111 |
|
112 |
__PACKAGE__->belongs_to( |
113 |
"vendor", |
114 |
"Koha::Schema::Result::Aqbookseller", |
115 |
{ id => "vendor_id" }, |
116 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
117 |
); |
118 |
|
119 |
|
120 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-04-12 07:36:23 |
121 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vf8jThqaWu2QkrXeMUgsgA |
122 |
|
123 |
|
124 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
125 |
1; |