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
=> 1, 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" },
102 on_delete
=> "RESTRICT",
103 on_update
=> "RESTRICT",
108 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 11:29:27
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9CSEvOmfmy52+QAYAgrybA
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration
113 __PACKAGE__
->belongs_to('branch',
114 "Koha::Schema::Result::Branch",
115 { 'branchcode' => 'branchcode' },
119 on_delete
=> 'CASCADE',
120 on_update
=> 'CASCADE',