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");
29 extra: {unsigned => 1}
46 =head2 id_code_qualifier
55 __PACKAGE__->add_columns(
58 data_type => "integer",
59 extra => { unsigned => 1 },
60 is_auto_increment => 1,
64 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
66 { data_type => "varchar", is_nullable => 0, size => 15 },
68 { data_type => "varchar", default_value => 14, is_nullable => 0, size => 3 },
81 __PACKAGE__->set_primary_key("ee_id");
89 Related object: L<Koha::Schema::Result::Branch>
93 __PACKAGE__->belongs_to(
95 "Koha::Schema::Result::Branch",
96 { branchcode => "branchcode" },
97 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
101 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-06-12 10:22:04
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WWcMBSXeuzgCPqM0KMxfBg
105 # You can replace this text with custom code or comments, and it will be preserved on regeneration
106 __PACKAGE__->belongs_to('branch',
107 "Koha::Schema::Result::Branch",
108 { 'branchcode' => 'branchcode' },
112 on_delete => 'CASCADE',
113 on_update => 'CASCADE',