Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::ImportBatchesProfile; |
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::ImportBatchesProfile |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<import_batches_profile> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("import_batches_profile"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
=head2 name |
33 |
|
34 |
data_type: 'varchar' |
35 |
is_nullable: 0 |
36 |
size: 100 |
37 |
|
38 |
=head2 matcher_id |
39 |
|
40 |
data_type: 'integer' |
41 |
is_nullable: 1 |
42 |
|
43 |
=head2 template_id |
44 |
|
45 |
data_type: 'integer' |
46 |
is_nullable: 1 |
47 |
|
48 |
=head2 overlay_action |
49 |
|
50 |
data_type: 'varchar' |
51 |
is_nullable: 1 |
52 |
size: 50 |
53 |
|
54 |
=head2 nomatch_action |
55 |
|
56 |
data_type: 'varchar' |
57 |
is_nullable: 1 |
58 |
size: 50 |
59 |
|
60 |
=head2 item_action |
61 |
|
62 |
data_type: 'varchar' |
63 |
is_nullable: 1 |
64 |
size: 50 |
65 |
|
66 |
=head2 parse_items |
67 |
|
68 |
data_type: 'tinyint' |
69 |
is_nullable: 1 |
70 |
|
71 |
=head2 record_type |
72 |
|
73 |
data_type: 'varchar' |
74 |
is_nullable: 1 |
75 |
size: 50 |
76 |
|
77 |
=head2 encoding |
78 |
|
79 |
data_type: 'varchar' |
80 |
is_nullable: 1 |
81 |
size: 50 |
82 |
|
83 |
=head2 format |
84 |
|
85 |
data_type: 'varchar' |
86 |
is_nullable: 1 |
87 |
size: 50 |
88 |
|
89 |
=head2 comments |
90 |
|
91 |
data_type: 'longtext' |
92 |
is_nullable: 1 |
93 |
|
94 |
=cut |
95 |
|
96 |
__PACKAGE__->add_columns( |
97 |
"id", |
98 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
99 |
"name", |
100 |
{ data_type => "varchar", is_nullable => 0, size => 100 }, |
101 |
"matcher_id", |
102 |
{ data_type => "integer", is_nullable => 1 }, |
103 |
"template_id", |
104 |
{ data_type => "integer", is_nullable => 1 }, |
105 |
"overlay_action", |
106 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
107 |
"nomatch_action", |
108 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
109 |
"item_action", |
110 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
111 |
"parse_items", |
112 |
{ data_type => "tinyint", is_nullable => 1 }, |
113 |
"record_type", |
114 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
115 |
"encoding", |
116 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
117 |
"format", |
118 |
{ data_type => "varchar", is_nullable => 1, size => 50 }, |
119 |
"comments", |
120 |
{ data_type => "longtext", is_nullable => 1 }, |
121 |
); |
122 |
|
123 |
=head1 PRIMARY KEY |
124 |
|
125 |
=over 4 |
126 |
|
127 |
=item * L</id> |
128 |
|
129 |
=back |
130 |
|
131 |
=cut |
132 |
|
133 |
__PACKAGE__->set_primary_key("id"); |
134 |
|
135 |
=head1 RELATIONS |
136 |
|
137 |
=head2 import_batches |
138 |
|
139 |
Type: has_many |
140 |
|
141 |
Related object: L<Koha::Schema::Result::ImportBatch> |
142 |
|
143 |
=cut |
144 |
|
145 |
__PACKAGE__->has_many( |
146 |
"import_batches", |
147 |
"Koha::Schema::Result::ImportBatch", |
148 |
{ "foreign.profile_id" => "self.id" }, |
149 |
{ cascade_copy => 0, cascade_delete => 0 }, |
150 |
); |
151 |
|
152 |
|
153 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-03 15:47:08 |
154 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BWFz5yLEEP6ANuAWKAMCeg |
155 |
|
156 |
__PACKAGE__->add_columns( |
157 |
'+parse_items' => { is_boolean => 1 }, |
158 |
); |
159 |
|
160 |
=head2 koha_object_class |
161 |
|
162 |
Koha Object class |
163 |
|
164 |
=cut |
165 |
|
166 |
sub koha_object_class { |
167 |
'Koha::ImportBatchProfile'; |
168 |
} |
169 |
|
170 |
=head2 koha_objects_class |
171 |
|
172 |
Koha Objects class |
173 |
|
174 |
=cut |
175 |
|
176 |
sub koha_objects_class { |
177 |
'Koha::ImportBatchProfiles'; |
178 |
} |
179 |
|
180 |
1; |