Line 0
Link Here
|
|
|
1 |
use utf8; |
2 |
package Koha::Schema::Result::DeletedbiblioMetadata; |
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::DeletedbiblioMetadata |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<deletedbiblio_metadata> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("deletedbiblio_metadata"); |
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 biblionumber |
33 |
|
34 |
data_type: 'integer' |
35 |
is_foreign_key: 1 |
36 |
is_nullable: 0 |
37 |
|
38 |
=head2 format |
39 |
|
40 |
data_type: 'varchar' |
41 |
is_nullable: 0 |
42 |
size: 16 |
43 |
|
44 |
=head2 marcflavour |
45 |
|
46 |
data_type: 'varchar' |
47 |
is_nullable: 0 |
48 |
size: 16 |
49 |
|
50 |
=head2 metadata |
51 |
|
52 |
data_type: 'longtext' |
53 |
is_nullable: 0 |
54 |
|
55 |
=cut |
56 |
|
57 |
__PACKAGE__->add_columns( |
58 |
"id", |
59 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
60 |
"biblionumber", |
61 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
62 |
"format", |
63 |
{ data_type => "varchar", is_nullable => 0, size => 16 }, |
64 |
"marcflavour", |
65 |
{ data_type => "varchar", is_nullable => 0, size => 16 }, |
66 |
"metadata", |
67 |
{ data_type => "longtext", is_nullable => 0 }, |
68 |
); |
69 |
|
70 |
=head1 PRIMARY KEY |
71 |
|
72 |
=over 4 |
73 |
|
74 |
=item * L</id> |
75 |
|
76 |
=back |
77 |
|
78 |
=cut |
79 |
|
80 |
__PACKAGE__->set_primary_key("id"); |
81 |
|
82 |
=head1 UNIQUE CONSTRAINTS |
83 |
|
84 |
=head2 C<deletedbiblio_metadata_uniq_key> |
85 |
|
86 |
=over 4 |
87 |
|
88 |
=item * L</biblionumber> |
89 |
|
90 |
=item * L</format> |
91 |
|
92 |
=item * L</marcflavour> |
93 |
|
94 |
=back |
95 |
|
96 |
=cut |
97 |
|
98 |
__PACKAGE__->add_unique_constraint( |
99 |
"deletedbiblio_metadata_uniq_key", |
100 |
["biblionumber", "format", "marcflavour"], |
101 |
); |
102 |
|
103 |
=head1 RELATIONS |
104 |
|
105 |
=head2 biblionumber |
106 |
|
107 |
Type: belongs_to |
108 |
|
109 |
Related object: L<Koha::Schema::Result::Deletedbiblio> |
110 |
|
111 |
=cut |
112 |
|
113 |
__PACKAGE__->belongs_to( |
114 |
"biblionumber", |
115 |
"Koha::Schema::Result::Deletedbiblio", |
116 |
{ biblionumber => "biblionumber" }, |
117 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
118 |
); |
119 |
|
120 |
|
121 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 08:36:25 |
122 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hKgy8bBepvfP/ZYPApJnwQ |
123 |
|
124 |
|
125 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
126 |
1; |