Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::MarcOrderAccount; |
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::MarcOrderAccount |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<marc_order_accounts> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("marc_order_accounts"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
unique identifier and primary key |
33 |
|
34 |
=head2 description |
35 |
|
36 |
data_type: 'varchar' |
37 |
is_nullable: 0 |
38 |
size: 250 |
39 |
|
40 |
description of this account |
41 |
|
42 |
=head2 vendor_id |
43 |
|
44 |
data_type: 'integer' |
45 |
is_foreign_key: 1 |
46 |
is_nullable: 1 |
47 |
|
48 |
vendor id for this account |
49 |
|
50 |
=head2 budget_id |
51 |
|
52 |
data_type: 'integer' |
53 |
is_foreign_key: 1 |
54 |
is_nullable: 1 |
55 |
|
56 |
budget id for this account |
57 |
|
58 |
=head2 download_directory |
59 |
|
60 |
data_type: 'mediumtext' |
61 |
is_nullable: 1 |
62 |
|
63 |
download directory for this account |
64 |
|
65 |
=head2 matcher_id |
66 |
|
67 |
data_type: 'integer' |
68 |
is_nullable: 1 |
69 |
|
70 |
the id of the match rule used (matchpoints.matcher_id) |
71 |
|
72 |
=head2 overlay_action |
73 |
|
74 |
data_type: 'varchar' |
75 |
is_nullable: 1 |
76 |
size: 50 |
77 |
|
78 |
how to handle duplicate records |
79 |
|
80 |
=head2 nomatch_action |
81 |
|
82 |
data_type: 'varchar' |
83 |
is_nullable: 1 |
84 |
size: 50 |
85 |
|
86 |
how to handle records where no match is found |
87 |
|
88 |
=head2 item_action |
89 |
|
90 |
data_type: 'varchar' |
91 |
is_nullable: 1 |
92 |
size: 50 |
93 |
|
94 |
what to do with item records |
95 |
|
96 |
=head2 parse_items |
97 |
|
98 |
data_type: 'tinyint' |
99 |
is_nullable: 1 |
100 |
|
101 |
should items be parsed |
102 |
|
103 |
=head2 record_type |
104 |
|
105 |
data_type: 'varchar' |
106 |
is_nullable: 1 |
107 |
size: 50 |
108 |
|
109 |
type of record in the file |
110 |
|
111 |
=head2 encoding |
112 |
|
113 |
data_type: 'varchar' |
114 |
is_nullable: 1 |
115 |
size: 50 |
116 |
|
117 |
file encoding |
118 |
|
119 |
=cut |
120 |
|
121 |
__PACKAGE__->add_columns( |
122 |
"id", |
123 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
124 |
"description", |
125 |
{ data_type => "varchar", is_nullable => 0, size => 250 }, |
126 |
"vendor_id", |
127 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
128 |
"budget_id", |
129 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
130 |
"download_directory", |
131 |
{ data_type => "mediumtext", is_nullable => 1 }, |
132 |
"matcher_id", |
133 |
{ data_type => "integer", is_nullable => 1 }, |
134 |
"overlay_action", |
135 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
136 |
"nomatch_action", |
137 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
138 |
"item_action", |
139 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
140 |
"parse_items", |
141 |
{ data_type => "tinyint", is_nullable => 1 }, |
142 |
"record_type", |
143 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
144 |
"encoding", |
145 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
146 |
); |
147 |
|
148 |
=head1 PRIMARY KEY |
149 |
|
150 |
=over 4 |
151 |
|
152 |
=item * L</id> |
153 |
|
154 |
=back |
155 |
|
156 |
=cut |
157 |
|
158 |
__PACKAGE__->set_primary_key("id"); |
159 |
|
160 |
=head1 RELATIONS |
161 |
|
162 |
=head2 budget |
163 |
|
164 |
Type: belongs_to |
165 |
|
166 |
Related object: L<Koha::Schema::Result::Aqbudget> |
167 |
|
168 |
=cut |
169 |
|
170 |
__PACKAGE__->belongs_to( |
171 |
"budget", |
172 |
"Koha::Schema::Result::Aqbudget", |
173 |
{ budget_id => "budget_id" }, |
174 |
{ |
175 |
is_deferrable => 1, |
176 |
join_type => "LEFT", |
177 |
on_delete => "CASCADE", |
178 |
on_update => "CASCADE", |
179 |
}, |
180 |
); |
181 |
|
182 |
=head2 vendor |
183 |
|
184 |
Type: belongs_to |
185 |
|
186 |
Related object: L<Koha::Schema::Result::Aqbookseller> |
187 |
|
188 |
=cut |
189 |
|
190 |
__PACKAGE__->belongs_to( |
191 |
"vendor", |
192 |
"Koha::Schema::Result::Aqbookseller", |
193 |
{ id => "vendor_id" }, |
194 |
{ |
195 |
is_deferrable => 1, |
196 |
join_type => "LEFT", |
197 |
on_delete => "CASCADE", |
198 |
on_update => "CASCADE", |
199 |
}, |
200 |
); |
201 |
|
202 |
|
203 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 13:01:54 |
204 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Fz6iYOJIQLrlYvAnmW6C4A |
205 |
|
206 |
__PACKAGE__->add_columns( |
207 |
'+parse_items' => { is_boolean => 1 }, |
208 |
); |
209 |
|
210 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
211 |
1; |