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 |
=head2 match_field |
120 |
|
121 |
data_type: 'varchar' |
122 |
is_nullable: 1 |
123 |
size: 10 |
124 |
|
125 |
the field that a vendor account has been mapped to in a marc record |
126 |
|
127 |
=head2 match_value |
128 |
|
129 |
data_type: 'varchar' |
130 |
is_nullable: 1 |
131 |
size: 50 |
132 |
|
133 |
the value to be matched against the marc record |
134 |
|
135 |
=cut |
136 |
|
137 |
__PACKAGE__->add_columns( |
138 |
"id", |
139 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
140 |
"description", |
141 |
{ data_type => "varchar", is_nullable => 0, size => 250 }, |
142 |
"vendor_id", |
143 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
144 |
"budget_id", |
145 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
146 |
"download_directory", |
147 |
{ data_type => "mediumtext", is_nullable => 1 }, |
148 |
"matcher_id", |
149 |
{ data_type => "integer", is_nullable => 1 }, |
150 |
"overlay_action", |
151 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
152 |
"nomatch_action", |
153 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
154 |
"item_action", |
155 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
156 |
"parse_items", |
157 |
{ data_type => "tinyint", is_nullable => 1 }, |
158 |
"record_type", |
159 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
160 |
"encoding", |
161 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
162 |
"match_field", |
163 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
164 |
"match_value", |
165 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
166 |
); |
167 |
|
168 |
=head1 PRIMARY KEY |
169 |
|
170 |
=over 4 |
171 |
|
172 |
=item * L</id> |
173 |
|
174 |
=back |
175 |
|
176 |
=cut |
177 |
|
178 |
__PACKAGE__->set_primary_key("id"); |
179 |
|
180 |
=head1 RELATIONS |
181 |
|
182 |
=head2 budget |
183 |
|
184 |
Type: belongs_to |
185 |
|
186 |
Related object: L<Koha::Schema::Result::Aqbudget> |
187 |
|
188 |
=cut |
189 |
|
190 |
__PACKAGE__->belongs_to( |
191 |
"budget", |
192 |
"Koha::Schema::Result::Aqbudget", |
193 |
{ budget_id => "budget_id" }, |
194 |
{ |
195 |
is_deferrable => 1, |
196 |
join_type => "LEFT", |
197 |
on_delete => "CASCADE", |
198 |
on_update => "CASCADE", |
199 |
}, |
200 |
); |
201 |
|
202 |
=head2 vendor |
203 |
|
204 |
Type: belongs_to |
205 |
|
206 |
Related object: L<Koha::Schema::Result::Aqbookseller> |
207 |
|
208 |
=cut |
209 |
|
210 |
__PACKAGE__->belongs_to( |
211 |
"vendor", |
212 |
"Koha::Schema::Result::Aqbookseller", |
213 |
{ id => "vendor_id" }, |
214 |
{ |
215 |
is_deferrable => 1, |
216 |
join_type => "LEFT", |
217 |
on_delete => "CASCADE", |
218 |
on_update => "CASCADE", |
219 |
}, |
220 |
); |
221 |
|
222 |
|
223 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-11 15:30:10 |
224 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fbpPZlp8dGbDfmdsYTW0GQ |
225 |
|
226 |
__PACKAGE__->add_columns( |
227 |
'+parse_items' => { is_boolean => 1 }, |
228 |
); |
229 |
|
230 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
231 |
1; |