2 package Koha::Schema::Result::EdifactMessage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::EdifactMessage
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<edifact_messages>
22 __PACKAGE__->table("edifact_messages");
41 datetime_undef_if_invalid: 1
58 data_type: 'mediumtext'
74 data_type: 'mediumtext'
85 __PACKAGE__->add_columns(
87 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
89 { data_type => "varchar", is_nullable => 0, size => 10 },
91 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
93 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
95 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97 { data_type => "mediumtext", is_nullable => 1 },
99 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
101 { data_type => "longtext", is_nullable => 1 },
103 { data_type => "mediumtext", is_nullable => 1 },
105 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
118 __PACKAGE__->set_primary_key("id");
126 Related object: L<Koha::Schema::Result::Aqinvoice>
130 __PACKAGE__->has_many(
132 "Koha::Schema::Result::Aqinvoice",
133 { "foreign.message_id" => "self.id" },
134 { cascade_copy => 0, cascade_delete => 0 },
141 Related object: L<Koha::Schema::Result::Aqbasket>
145 __PACKAGE__->belongs_to(
147 "Koha::Schema::Result::Aqbasket",
148 { basketno => "basketno" },
152 on_delete => "RESTRICT",
153 on_update => "RESTRICT",
161 Related object: L<Koha::Schema::Result::Aqbasket>
165 __PACKAGE__->belongs_to(
167 "Koha::Schema::Result::Aqbasket",
168 { basketno => "basketno" },
172 on_delete => "CASCADE",
173 on_update => "CASCADE",
181 Related object: L<Koha::Schema::Result::VendorEdiAccount>
185 __PACKAGE__->belongs_to(
187 "Koha::Schema::Result::VendorEdiAccount",
188 { id => "edi_acct" },
192 on_delete => "RESTRICT",
193 on_update => "RESTRICT",
201 Related object: L<Koha::Schema::Result::VendorEdiAccount>
205 __PACKAGE__->belongs_to(
207 "Koha::Schema::Result::VendorEdiAccount",
208 { id => "edi_acct" },
212 on_delete => "CASCADE",
213 on_update => "CASCADE",
221 Related object: L<Koha::Schema::Result::Aqbookseller>
225 __PACKAGE__->belongs_to(
227 "Koha::Schema::Result::Aqbookseller",
228 { id => "vendor_id" },
232 on_delete => "RESTRICT",
233 on_update => "RESTRICT",
241 Related object: L<Koha::Schema::Result::Aqbookseller>
245 __PACKAGE__->belongs_to(
247 "Koha::Schema::Result::Aqbookseller",
248 { id => "vendor_id" },
252 on_delete => "CASCADE",
253 on_update => "CASCADE",
258 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-22 14:08:17
259 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A/Si6z6lih7nS39P5jTffA
261 __PACKAGE__->add_columns(
262 '+deleted' => { is_boolean => 1 },