Bug 17855 - Followup patch following requests in comments 176 and 177
[koha.git] / Koha / Schema / Result / ImportBiblio.pm
blob1b6c50da1db057ead724fce933af74d7a88155d3
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: 'varchar'
52 is_nullable: 1
53 size: 128
55 =head2 author
57 data_type: 'varchar'
58 is_nullable: 1
59 size: 80
61 =head2 isbn
63 data_type: 'varchar'
64 is_nullable: 1
65 size: 30
67 =head2 issn
69 data_type: 'varchar'
70 is_nullable: 1
71 size: 9
73 =head2 has_items
75 data_type: 'tinyint'
76 default_value: 0
77 is_nullable: 0
79 =cut
81 __PACKAGE__->add_columns(
82 "import_record_id",
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
84 "matched_biblionumber",
85 { data_type => "integer", is_nullable => 1 },
86 "control_number",
87 { data_type => "varchar", is_nullable => 1, size => 25 },
88 "original_source",
89 { data_type => "varchar", is_nullable => 1, size => 25 },
90 "title",
91 { data_type => "varchar", is_nullable => 1, size => 128 },
92 "author",
93 { data_type => "varchar", is_nullable => 1, size => 80 },
94 "isbn",
95 { data_type => "varchar", is_nullable => 1, size => 30 },
96 "issn",
97 { data_type => "varchar", is_nullable => 1, size => 9 },
98 "has_items",
99 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
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.07025 @ 2013-10-14 20:56:21
121 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6dQmL78YztbxS9qXHciPTQ
124 # You can replace this text with custom content, and it will be preserved on regeneration