Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::ImportOaipmhBiblio; |
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::ImportOaipmhBiblio |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<import_oaipmh_biblios> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("import_oaipmh_biblios"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 id |
27 |
|
28 |
data_type: 'integer' |
29 |
extra: {unsigned => 1} |
30 |
is_auto_increment: 1 |
31 |
is_nullable: 0 |
32 |
|
33 |
=head2 repository |
34 |
|
35 |
data_type: 'mediumtext' |
36 |
is_nullable: 0 |
37 |
|
38 |
=head2 identifier |
39 |
|
40 |
data_type: 'mediumtext' |
41 |
is_nullable: 0 |
42 |
|
43 |
=head2 datestamp |
44 |
|
45 |
data_type: 'datetime' |
46 |
datetime_undef_if_invalid: 1 |
47 |
is_nullable: 0 |
48 |
|
49 |
=head2 deleted |
50 |
|
51 |
data_type: 'tinyint' |
52 |
default_value: 0 |
53 |
is_nullable: 1 |
54 |
|
55 |
=head2 metadata |
56 |
|
57 |
data_type: 'longtext' |
58 |
is_nullable: 0 |
59 |
|
60 |
=head2 frameworkcode |
61 |
|
62 |
data_type: 'varchar' |
63 |
is_nullable: 0 |
64 |
size: 4 |
65 |
|
66 |
=head2 biblionumber |
67 |
|
68 |
data_type: 'integer' |
69 |
is_foreign_key: 1 |
70 |
is_nullable: 1 |
71 |
|
72 |
=head2 last_modified |
73 |
|
74 |
data_type: 'timestamp' |
75 |
datetime_undef_if_invalid: 1 |
76 |
default_value: current_timestamp |
77 |
is_nullable: 0 |
78 |
|
79 |
=cut |
80 |
|
81 |
__PACKAGE__->add_columns( |
82 |
"id", |
83 |
{ |
84 |
data_type => "integer", |
85 |
extra => { unsigned => 1 }, |
86 |
is_auto_increment => 1, |
87 |
is_nullable => 0, |
88 |
}, |
89 |
"repository", |
90 |
{ data_type => "mediumtext", is_nullable => 0 }, |
91 |
"identifier", |
92 |
{ data_type => "mediumtext", is_nullable => 0 }, |
93 |
"datestamp", |
94 |
{ |
95 |
data_type => "datetime", |
96 |
datetime_undef_if_invalid => 1, |
97 |
is_nullable => 0, |
98 |
}, |
99 |
"deleted", |
100 |
{ data_type => "tinyint", default_value => 0, is_nullable => 1 }, |
101 |
"metadata", |
102 |
{ data_type => "longtext", is_nullable => 0 }, |
103 |
"frameworkcode", |
104 |
{ data_type => "varchar", is_nullable => 0, size => 4 }, |
105 |
"biblionumber", |
106 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
107 |
"last_modified", |
108 |
{ |
109 |
data_type => "timestamp", |
110 |
datetime_undef_if_invalid => 1, |
111 |
default_value => \"current_timestamp", |
112 |
is_nullable => 0, |
113 |
}, |
114 |
); |
115 |
|
116 |
=head1 PRIMARY KEY |
117 |
|
118 |
=over 4 |
119 |
|
120 |
=item * L</id> |
121 |
|
122 |
=back |
123 |
|
124 |
=cut |
125 |
|
126 |
__PACKAGE__->set_primary_key("id"); |
127 |
|
128 |
=head1 RELATIONS |
129 |
|
130 |
=head2 biblionumber |
131 |
|
132 |
Type: belongs_to |
133 |
|
134 |
Related object: L<Koha::Schema::Result::Biblio> |
135 |
|
136 |
=cut |
137 |
|
138 |
__PACKAGE__->belongs_to( |
139 |
"biblionumber", |
140 |
"Koha::Schema::Result::Biblio", |
141 |
{ biblionumber => "biblionumber" }, |
142 |
{ |
143 |
is_deferrable => 1, |
144 |
join_type => "LEFT", |
145 |
on_delete => "CASCADE", |
146 |
on_update => "NO ACTION", |
147 |
}, |
148 |
); |
149 |
|
150 |
|
151 |
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-08-06 08:19:43 |
152 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xlp1qyN+WtHaIoQMlXCvAQ |
153 |
|
154 |
|
155 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
156 |
1; |