Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / ImportItem.pm
blob6d13719ee15f1e0f6fd734e48c95565fe551dbe4
1 use utf8;
2 package Koha::Schema::Result::ImportItem;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ImportItem
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<import_items>
20 =cut
22 __PACKAGE__->table("import_items");
24 =head1 ACCESSORS
26 =head2 import_items_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 import_record_id
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 itemnumber
40 data_type: 'integer'
41 is_nullable: 1
43 =head2 branchcode
45 data_type: 'varchar'
46 is_nullable: 1
47 size: 10
49 =head2 status
51 data_type: 'enum'
52 default_value: 'staged'
53 extra: {list => ["error","staged","imported","reverted","ignored"]}
54 is_nullable: 0
56 =head2 marcxml
58 data_type: 'longtext'
59 is_nullable: 0
61 =head2 import_error
63 data_type: 'longtext'
64 is_nullable: 1
66 =cut
68 __PACKAGE__->add_columns(
69 "import_items_id",
70 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71 "import_record_id",
72 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73 "itemnumber",
74 { data_type => "integer", is_nullable => 1 },
75 "branchcode",
76 { data_type => "varchar", is_nullable => 1, size => 10 },
77 "status",
79 data_type => "enum",
80 default_value => "staged",
81 extra => { list => ["error", "staged", "imported", "reverted", "ignored"] },
82 is_nullable => 0,
84 "marcxml",
85 { data_type => "longtext", is_nullable => 0 },
86 "import_error",
87 { data_type => "longtext", is_nullable => 1 },
90 =head1 PRIMARY KEY
92 =over 4
94 =item * L</import_items_id>
96 =back
98 =cut
100 __PACKAGE__->set_primary_key("import_items_id");
102 =head1 RELATIONS
104 =head2 import_record
106 Type: belongs_to
108 Related object: L<Koha::Schema::Result::ImportRecord>
110 =cut
112 __PACKAGE__->belongs_to(
113 "import_record",
114 "Koha::Schema::Result::ImportRecord",
115 { import_record_id => "import_record_id" },
116 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
121 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GaUyqPnOhETQO8YuuKvfNQ
124 # You can replace this text with custom content, and it will be preserved on regeneration