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
69 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 => "text", is_nullable => 1 },
99 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
101 { data_type => "mediumtext", is_nullable => 1 },
103 { data_type => "text", 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 => "CASCADE",
153 on_update => "CASCADE",
161 Related object: L<Koha::Schema::Result::VendorEdiAccount>
165 __PACKAGE__->belongs_to(
167 "Koha::Schema::Result::VendorEdiAccount",
168 { id => "edi_acct" },
172 on_delete => "CASCADE",
173 on_update => "CASCADE",
181 Related object: L<Koha::Schema::Result::Aqbookseller>
185 __PACKAGE__->belongs_to(
187 "Koha::Schema::Result::Aqbookseller",
188 { id => "vendor_id" },
192 on_delete => "CASCADE",
193 on_update => "CASCADE",
198 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
199 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R20sqhX9IbPaonx9HnRKeQ