Line 0
Link Here
|
|
|
1 |
use utf8; |
2 |
|
3 |
package Koha::Schema::Result::EdifactError; |
4 |
|
5 |
# Created by DBIx::Class::Schema::Loader |
6 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
7 |
|
8 |
=head1 NAME |
9 |
|
10 |
Koha::Schema::Result::EdifactError |
11 |
|
12 |
=cut |
13 |
|
14 |
use strict; |
15 |
use warnings; |
16 |
|
17 |
use base 'DBIx::Class::Core'; |
18 |
|
19 |
=head1 TABLE: C<edifact_errors> |
20 |
|
21 |
=cut |
22 |
|
23 |
__PACKAGE__->table("edifact_errors"); |
24 |
|
25 |
=head1 ACCESSORS |
26 |
|
27 |
=head2 id |
28 |
|
29 |
data_type: 'integer' |
30 |
is_auto_increment: 1 |
31 |
is_nullable: 0 |
32 |
|
33 |
=head2 message_id |
34 |
|
35 |
data_type: 'integer' |
36 |
is_foreign_key: 1 |
37 |
is_nullable: 0 |
38 |
|
39 |
=head2 date |
40 |
|
41 |
data_type: 'date' |
42 |
datetime_undef_if_invalid: 1 |
43 |
is_nullable: 1 |
44 |
|
45 |
=head2 section |
46 |
|
47 |
data_type: 'mediumtext' |
48 |
is_nullable: 1 |
49 |
|
50 |
=head2 details |
51 |
|
52 |
data_type: 'mediumtext' |
53 |
is_nullable: 1 |
54 |
|
55 |
=cut |
56 |
|
57 |
__PACKAGE__->add_columns( |
58 |
"id", |
59 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
60 |
"message_id", |
61 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
62 |
"date", |
63 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
64 |
"section", |
65 |
{ data_type => "mediumtext", is_nullable => 1 }, |
66 |
"details", |
67 |
{ data_type => "mediumtext", is_nullable => 1 }, |
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 RELATIONS |
83 |
|
84 |
=head2 message |
85 |
|
86 |
Type: belongs_to |
87 |
|
88 |
Related object: L<Koha::Schema::Result::EdifactMessage> |
89 |
|
90 |
=cut |
91 |
|
92 |
__PACKAGE__->belongs_to( |
93 |
"message", |
94 |
"Koha::Schema::Result::EdifactMessage", |
95 |
{ id => "message_id" }, |
96 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
97 |
); |
98 |
|
99 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-19 16:24:01 |
100 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eDk5vkbGeMthv3oVJUC7yQ |
101 |
|
102 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
103 |
1; |