Bug 26922: Regression tests
[koha.git] / Koha / Schema / Result / ImportBiblio.pm
blobca4e21246a454a61e369394730261a466bd2931c
1 use utf8;
2 package Koha::Schema::Result::ImportBiblio;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ImportBiblio
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<import_biblios>
20 =cut
22 __PACKAGE__->table("import_biblios");
24 =head1 ACCESSORS
26 =head2 import_record_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 matched_biblionumber
34 data_type: 'integer'
35 is_nullable: 1
37 =head2 control_number
39 data_type: 'varchar'
40 is_nullable: 1
41 size: 25
43 =head2 original_source
45 data_type: 'varchar'
46 is_nullable: 1
47 size: 25
49 =head2 title
51 data_type: 'longtext'
52 is_nullable: 1
54 =head2 author
56 data_type: 'longtext'
57 is_nullable: 1
59 =head2 isbn
61 data_type: 'longtext'
62 is_nullable: 1
64 =head2 issn
66 data_type: 'longtext'
67 is_nullable: 1
69 =head2 has_items
71 data_type: 'tinyint'
72 default_value: 0
73 is_nullable: 0
75 =cut
77 __PACKAGE__->add_columns(
78 "import_record_id",
79 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
80 "matched_biblionumber",
81 { data_type => "integer", is_nullable => 1 },
82 "control_number",
83 { data_type => "varchar", is_nullable => 1, size => 25 },
84 "original_source",
85 { data_type => "varchar", is_nullable => 1, size => 25 },
86 "title",
87 { data_type => "longtext", is_nullable => 1 },
88 "author",
89 { data_type => "longtext", is_nullable => 1 },
90 "isbn",
91 { data_type => "longtext", is_nullable => 1 },
92 "issn",
93 { data_type => "longtext", is_nullable => 1 },
94 "has_items",
95 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
98 =head1 RELATIONS
100 =head2 import_record
102 Type: belongs_to
104 Related object: L<Koha::Schema::Result::ImportRecord>
106 =cut
108 __PACKAGE__->belongs_to(
109 "import_record",
110 "Koha::Schema::Result::ImportRecord",
111 { import_record_id => "import_record_id" },
112 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
116 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-03 09:53:04
117 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/nOWo4fGjdch+K0T+07cSw
120 # You can replace this text with custom content, and it will be preserved on regeneration