Bug 17047: Schema changes
[koha.git] / Koha / Schema / Result / Deletedbiblio.pm
1 use utf8;
2 package Koha::Schema::Result::Deletedbiblio;
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::Deletedbiblio
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<deletedbiblio>
19
20 =cut
21
22 __PACKAGE__->table("deletedbiblio");
23
24 =head1 ACCESSORS
25
26 =head2 biblionumber
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 frameworkcode
33
34   data_type: 'varchar'
35   default_value: (empty string)
36   is_nullable: 0
37   size: 4
38
39 =head2 author
40
41   data_type: 'longtext'
42   is_nullable: 1
43
44 =head2 title
45
46   data_type: 'longtext'
47   is_nullable: 1
48
49 =head2 unititle
50
51   data_type: 'longtext'
52   is_nullable: 1
53
54 =head2 notes
55
56   data_type: 'longtext'
57   is_nullable: 1
58
59 =head2 serial
60
61   data_type: 'tinyint'
62   is_nullable: 1
63
64 =head2 seriestitle
65
66   data_type: 'longtext'
67   is_nullable: 1
68
69 =head2 copyrightdate
70
71   data_type: 'smallint'
72   is_nullable: 1
73
74 =head2 timestamp
75
76   data_type: 'timestamp'
77   datetime_undef_if_invalid: 1
78   default_value: current_timestamp
79   is_nullable: 0
80
81 =head2 datecreated
82
83   data_type: 'date'
84   datetime_undef_if_invalid: 1
85   is_nullable: 0
86
87 =head2 abstract
88
89   data_type: 'longtext'
90   is_nullable: 1
91
92 =cut
93
94 __PACKAGE__->add_columns(
95   "biblionumber",
96   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
97   "frameworkcode",
98   { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
99   "author",
100   { data_type => "longtext", is_nullable => 1 },
101   "title",
102   { data_type => "longtext", is_nullable => 1 },
103   "unititle",
104   { data_type => "longtext", is_nullable => 1 },
105   "notes",
106   { data_type => "longtext", is_nullable => 1 },
107   "serial",
108   { data_type => "tinyint", is_nullable => 1 },
109   "seriestitle",
110   { data_type => "longtext", is_nullable => 1 },
111   "copyrightdate",
112   { data_type => "smallint", is_nullable => 1 },
113   "timestamp",
114   {
115     data_type => "timestamp",
116     datetime_undef_if_invalid => 1,
117     default_value => \"current_timestamp",
118     is_nullable => 0,
119   },
120   "datecreated",
121   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
122   "abstract",
123   { data_type => "longtext", is_nullable => 1 },
124 );
125
126 =head1 PRIMARY KEY
127
128 =over 4
129
130 =item * L</biblionumber>
131
132 =back
133
134 =cut
135
136 __PACKAGE__->set_primary_key("biblionumber");
137
138 =head1 RELATIONS
139
140 =head2 deletedbiblio_metadatas
141
142 Type: has_many
143
144 Related object: L<Koha::Schema::Result::DeletedbiblioMetadata>
145
146 =cut
147
148 __PACKAGE__->has_many(
149   "deletedbiblio_metadatas",
150   "Koha::Schema::Result::DeletedbiblioMetadata",
151   { "foreign.biblionumber" => "self.biblionumber" },
152   { cascade_copy => 0, cascade_delete => 0 },
153 );
154
155
156 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
157 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dP0HOIp/+I93Y/u92TDI1g
158
159
160 # You can replace this text with custom content, and it will be preserved on regeneration
161 1;