Bug 26853: DBIC schema changes
[koha.git] / Koha / Schema / Result / ImportBiblio.pm
1 use utf8;
2 package Koha::Schema::Result::ImportBiblio;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::ImportBiblio
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<import_biblios>
19
20 =cut
21
22 __PACKAGE__->table("import_biblios");
23
24 =head1 ACCESSORS
25
26 =head2 import_record_id
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 matched_biblionumber
33
34   data_type: 'integer'
35   is_nullable: 1
36
37 =head2 control_number
38
39   data_type: 'varchar'
40   is_nullable: 1
41   size: 25
42
43 =head2 original_source
44
45   data_type: 'varchar'
46   is_nullable: 1
47   size: 25
48
49 =head2 title
50
51   data_type: 'longtext'
52   is_nullable: 1
53
54 =head2 author
55
56   data_type: 'longtext'
57   is_nullable: 1
58
59 =head2 isbn
60
61   data_type: 'longtext'
62   is_nullable: 1
63
64 =head2 issn
65
66   data_type: 'longtext'
67   is_nullable: 1
68
69 =head2 has_items
70
71   data_type: 'tinyint'
72   default_value: 0
73   is_nullable: 0
74
75 =cut
76
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 },
96 );
97
98 =head1 RELATIONS
99
100 =head2 import_record
101
102 Type: belongs_to
103
104 Related object: L<Koha::Schema::Result::ImportRecord>
105
106 =cut
107
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" },
113 );
114
115
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
118
119
120 # You can replace this text with custom content, and it will be preserved on regeneration
121 1;