2 package Koha::Schema::Result::EdifactEan;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::EdifactEan
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<edifact_ean>
22 __PACKAGE__->table("edifact_ean");
51 =head2 id_code_qualifier
60 __PACKAGE__->add_columns(
62 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64 { data_type => "varchar", is_nullable => 1, size => 128 },
66 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
68 { data_type => "varchar", is_nullable => 0, size => 15 },
70 { data_type => "varchar", default_value => 14, is_nullable => 0, size => 3 },
83 __PACKAGE__->set_primary_key("ee_id");
91 Related object: L<Koha::Schema::Result::Branch>
95 __PACKAGE__->belongs_to(
97 "Koha::Schema::Result::Branch",
98 { branchcode => "branchcode" },
99 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
103 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-03-11 12:04:29
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wziFbge4g2Ek1lc8Anto+Q
107 # You can replace this text with custom code or comments, and it will be preserved on regeneration
108 __PACKAGE__->belongs_to('branch',
109 "Koha::Schema::Result::Branch",
110 { 'branchcode' => 'branchcode' },
114 on_delete => 'CASCADE',
115 on_update => 'CASCADE',