Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::OaiHarvestRepository; |
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::OaiHarvestRepository |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<oai_harvest_repositories> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("oai_harvest_repositories"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 repository_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
=head2 base_url |
33 |
|
34 |
data_type: 'text' |
35 |
is_nullable: 0 |
36 |
|
37 |
=head2 basic_username |
38 |
|
39 |
data_type: 'text' |
40 |
is_nullable: 1 |
41 |
|
42 |
=head2 basic_password |
43 |
|
44 |
data_type: 'text' |
45 |
is_nullable: 1 |
46 |
|
47 |
=head2 basic_realm |
48 |
|
49 |
data_type: 'text' |
50 |
is_nullable: 1 |
51 |
|
52 |
=head2 datetime_granularity |
53 |
|
54 |
data_type: 'enum' |
55 |
default_value: 'YYYY-MM-DD' |
56 |
extra: {list => ["YYYY-MM-DDThh:mm:ssZ","YYYY-MM-DD"]} |
57 |
is_nullable: 0 |
58 |
|
59 |
=head2 opt_from |
60 |
|
61 |
data_type: 'datetime' |
62 |
datetime_undef_if_invalid: 1 |
63 |
is_nullable: 1 |
64 |
|
65 |
=head2 opt_until |
66 |
|
67 |
data_type: 'datetime' |
68 |
datetime_undef_if_invalid: 1 |
69 |
is_nullable: 1 |
70 |
|
71 |
=head2 opt_set |
72 |
|
73 |
data_type: 'varchar' |
74 |
is_nullable: 1 |
75 |
size: 45 |
76 |
|
77 |
=head2 metadata_prefix |
78 |
|
79 |
data_type: 'varchar' |
80 |
is_nullable: 0 |
81 |
size: 45 |
82 |
|
83 |
=head2 active |
84 |
|
85 |
data_type: 'integer' |
86 |
default_value: 0 |
87 |
is_nullable: 0 |
88 |
|
89 |
=head2 timestamp |
90 |
|
91 |
data_type: 'timestamp' |
92 |
datetime_undef_if_invalid: 1 |
93 |
default_value: current_timestamp |
94 |
is_nullable: 0 |
95 |
|
96 |
=head2 xslt_path |
97 |
|
98 |
data_type: 'text' |
99 |
is_nullable: 1 |
100 |
|
101 |
=head2 frameworkcode |
102 |
|
103 |
data_type: 'varchar' |
104 |
default_value: (empty string) |
105 |
is_nullable: 0 |
106 |
size: 4 |
107 |
|
108 |
=head2 comments |
109 |
|
110 |
data_type: 'text' |
111 |
is_nullable: 1 |
112 |
|
113 |
=head2 record_type |
114 |
|
115 |
data_type: 'enum' |
116 |
default_value: 'biblio' |
117 |
extra: {list => ["biblio","auth","holdings"]} |
118 |
is_nullable: 0 |
119 |
|
120 |
=head2 original_system_field |
121 |
|
122 |
data_type: 'varchar' |
123 |
is_nullable: 1 |
124 |
size: 45 |
125 |
|
126 |
=cut |
127 |
|
128 |
__PACKAGE__->add_columns( |
129 |
"repository_id", |
130 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
131 |
"base_url", |
132 |
{ data_type => "text", is_nullable => 0 }, |
133 |
"basic_username", |
134 |
{ data_type => "text", is_nullable => 1 }, |
135 |
"basic_password", |
136 |
{ data_type => "text", is_nullable => 1 }, |
137 |
"basic_realm", |
138 |
{ data_type => "text", is_nullable => 1 }, |
139 |
"datetime_granularity", |
140 |
{ |
141 |
data_type => "enum", |
142 |
default_value => "YYYY-MM-DD", |
143 |
extra => { list => ["YYYY-MM-DDThh:mm:ssZ", "YYYY-MM-DD"] }, |
144 |
is_nullable => 0, |
145 |
}, |
146 |
"opt_from", |
147 |
{ |
148 |
data_type => "datetime", |
149 |
datetime_undef_if_invalid => 1, |
150 |
is_nullable => 1, |
151 |
}, |
152 |
"opt_until", |
153 |
{ |
154 |
data_type => "datetime", |
155 |
datetime_undef_if_invalid => 1, |
156 |
is_nullable => 1, |
157 |
}, |
158 |
"opt_set", |
159 |
{ data_type => "varchar", is_nullable => 1, size => 45 }, |
160 |
"metadata_prefix", |
161 |
{ data_type => "varchar", is_nullable => 0, size => 45 }, |
162 |
"active", |
163 |
{ data_type => "integer", default_value => 0, is_nullable => 0 }, |
164 |
"timestamp", |
165 |
{ |
166 |
data_type => "timestamp", |
167 |
datetime_undef_if_invalid => 1, |
168 |
default_value => \"current_timestamp", |
169 |
is_nullable => 0, |
170 |
}, |
171 |
"xslt_path", |
172 |
{ data_type => "text", is_nullable => 1 }, |
173 |
"frameworkcode", |
174 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 4 }, |
175 |
"comments", |
176 |
{ data_type => "text", is_nullable => 1 }, |
177 |
"record_type", |
178 |
{ |
179 |
data_type => "enum", |
180 |
default_value => "biblio", |
181 |
extra => { list => ["biblio", "auth", "holdings"] }, |
182 |
is_nullable => 0, |
183 |
}, |
184 |
"original_system_field", |
185 |
{ data_type => "varchar", is_nullable => 1, size => 45 }, |
186 |
); |
187 |
|
188 |
=head1 PRIMARY KEY |
189 |
|
190 |
=over 4 |
191 |
|
192 |
=item * L</repository_id> |
193 |
|
194 |
=back |
195 |
|
196 |
=cut |
197 |
|
198 |
__PACKAGE__->set_primary_key("repository_id"); |
199 |
|
200 |
=head1 RELATIONS |
201 |
|
202 |
=head2 oai_harvests |
203 |
|
204 |
Type: has_many |
205 |
|
206 |
Related object: L<Koha::Schema::Result::OaiHarvest> |
207 |
|
208 |
=cut |
209 |
|
210 |
__PACKAGE__->has_many( |
211 |
"oai_harvests", |
212 |
"Koha::Schema::Result::OaiHarvest", |
213 |
{ "foreign.repository_id" => "self.repository_id" }, |
214 |
{ cascade_copy => 0, cascade_delete => 0 }, |
215 |
); |
216 |
|
217 |
|
218 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-08-18 11:54:57 |
219 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EX+ru6uCSB83y41RHERfhw |
220 |
|
221 |
|
222 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
223 |
1; |