Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / Biblio.pm
1 package Koha::Schema::Result::Biblio;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Biblio
15
16 =cut
17
18 __PACKAGE__->table("biblio");
19
20 =head1 ACCESSORS
21
22 =head2 biblionumber
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 frameworkcode
29
30   data_type: 'varchar'
31   default_value: (empty string)
32   is_nullable: 0
33   size: 4
34
35 =head2 author
36
37   data_type: 'mediumtext'
38   is_nullable: 1
39
40 =head2 title
41
42   data_type: 'mediumtext'
43   is_nullable: 1
44
45 =head2 unititle
46
47   data_type: 'mediumtext'
48   is_nullable: 1
49
50 =head2 notes
51
52   data_type: 'mediumtext'
53   is_nullable: 1
54
55 =head2 serial
56
57   data_type: 'tinyint'
58   is_nullable: 1
59
60 =head2 seriestitle
61
62   data_type: 'mediumtext'
63   is_nullable: 1
64
65 =head2 copyrightdate
66
67   data_type: 'smallint'
68   is_nullable: 1
69
70 =head2 timestamp
71
72   data_type: 'timestamp'
73   default_value: current_timestamp
74   is_nullable: 0
75
76 =head2 datecreated
77
78   data_type: 'date'
79   is_nullable: 0
80
81 =head2 abstract
82
83   data_type: 'mediumtext'
84   is_nullable: 1
85
86 =cut
87
88 __PACKAGE__->add_columns(
89   "biblionumber",
90   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
91   "frameworkcode",
92   { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
93   "author",
94   { data_type => "mediumtext", is_nullable => 1 },
95   "title",
96   { data_type => "mediumtext", is_nullable => 1 },
97   "unititle",
98   { data_type => "mediumtext", is_nullable => 1 },
99   "notes",
100   { data_type => "mediumtext", is_nullable => 1 },
101   "serial",
102   { data_type => "tinyint", is_nullable => 1 },
103   "seriestitle",
104   { data_type => "mediumtext", is_nullable => 1 },
105   "copyrightdate",
106   { data_type => "smallint", is_nullable => 1 },
107   "timestamp",
108   {
109     data_type     => "timestamp",
110     default_value => \"current_timestamp",
111     is_nullable   => 0,
112   },
113   "datecreated",
114   { data_type => "date", is_nullable => 0 },
115   "abstract",
116   { data_type => "mediumtext", is_nullable => 1 },
117 );
118 __PACKAGE__->set_primary_key("biblionumber");
119
120 =head1 RELATIONS
121
122 =head2 aqorders
123
124 Type: has_many
125
126 Related object: L<Koha::Schema::Result::Aqorder>
127
128 =cut
129
130 __PACKAGE__->has_many(
131   "aqorders",
132   "Koha::Schema::Result::Aqorder",
133   { "foreign.biblionumber" => "self.biblionumber" },
134   { cascade_copy => 0, cascade_delete => 0 },
135 );
136
137 =head2 biblioimages
138
139 Type: has_many
140
141 Related object: L<Koha::Schema::Result::Biblioimage>
142
143 =cut
144
145 __PACKAGE__->has_many(
146   "biblioimages",
147   "Koha::Schema::Result::Biblioimage",
148   { "foreign.biblionumber" => "self.biblionumber" },
149   { cascade_copy => 0, cascade_delete => 0 },
150 );
151
152 =head2 biblioitems
153
154 Type: has_many
155
156 Related object: L<Koha::Schema::Result::Biblioitem>
157
158 =cut
159
160 __PACKAGE__->has_many(
161   "biblioitems",
162   "Koha::Schema::Result::Biblioitem",
163   { "foreign.biblionumber" => "self.biblionumber" },
164   { cascade_copy => 0, cascade_delete => 0 },
165 );
166
167 =head2 hold_fill_targets
168
169 Type: has_many
170
171 Related object: L<Koha::Schema::Result::HoldFillTarget>
172
173 =cut
174
175 __PACKAGE__->has_many(
176   "hold_fill_targets",
177   "Koha::Schema::Result::HoldFillTarget",
178   { "foreign.biblionumber" => "self.biblionumber" },
179   { cascade_copy => 0, cascade_delete => 0 },
180 );
181
182 =head2 oai_sets_biblios
183
184 Type: has_many
185
186 Related object: L<Koha::Schema::Result::OaiSetsBiblio>
187
188 =cut
189
190 __PACKAGE__->has_many(
191   "oai_sets_biblios",
192   "Koha::Schema::Result::OaiSetsBiblio",
193   { "foreign.biblionumber" => "self.biblionumber" },
194   { cascade_copy => 0, cascade_delete => 0 },
195 );
196
197 =head2 old_reserves
198
199 Type: has_many
200
201 Related object: L<Koha::Schema::Result::OldReserve>
202
203 =cut
204
205 __PACKAGE__->has_many(
206   "old_reserves",
207   "Koha::Schema::Result::OldReserve",
208   { "foreign.biblionumber" => "self.biblionumber" },
209   { cascade_copy => 0, cascade_delete => 0 },
210 );
211
212 =head2 ratings
213
214 Type: has_many
215
216 Related object: L<Koha::Schema::Result::Rating>
217
218 =cut
219
220 __PACKAGE__->has_many(
221   "ratings",
222   "Koha::Schema::Result::Rating",
223   { "foreign.biblionumber" => "self.biblionumber" },
224   { cascade_copy => 0, cascade_delete => 0 },
225 );
226
227 =head2 reserves
228
229 Type: has_many
230
231 Related object: L<Koha::Schema::Result::Reserve>
232
233 =cut
234
235 __PACKAGE__->has_many(
236   "reserves",
237   "Koha::Schema::Result::Reserve",
238   { "foreign.biblionumber" => "self.biblionumber" },
239   { cascade_copy => 0, cascade_delete => 0 },
240 );
241
242 =head2 reviews
243
244 Type: has_many
245
246 Related object: L<Koha::Schema::Result::Review>
247
248 =cut
249
250 __PACKAGE__->has_many(
251   "reviews",
252   "Koha::Schema::Result::Review",
253   { "foreign.biblionumber" => "self.biblionumber" },
254   { cascade_copy => 0, cascade_delete => 0 },
255 );
256
257 =head2 tags_all
258
259 Type: has_many
260
261 Related object: L<Koha::Schema::Result::TagAll>
262
263 =cut
264
265 __PACKAGE__->has_many(
266   "tags_all",
267   "Koha::Schema::Result::TagAll",
268   { "foreign.biblionumber" => "self.biblionumber" },
269   { cascade_copy => 0, cascade_delete => 0 },
270 );
271
272 =head2 tags_indexes
273
274 Type: has_many
275
276 Related object: L<Koha::Schema::Result::TagsIndex>
277
278 =cut
279
280 __PACKAGE__->has_many(
281   "tags_indexes",
282   "Koha::Schema::Result::TagsIndex",
283   { "foreign.biblionumber" => "self.biblionumber" },
284   { cascade_copy => 0, cascade_delete => 0 },
285 );
286
287 =head2 virtualshelfcontents
288
289 Type: has_many
290
291 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
292
293 =cut
294
295 __PACKAGE__->has_many(
296   "virtualshelfcontents",
297   "Koha::Schema::Result::Virtualshelfcontent",
298   { "foreign.biblionumber" => "self.biblionumber" },
299   { cascade_copy => 0, cascade_delete => 0 },
300 );
301
302
303 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
304 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NwOZPwmnB/44XMp45TzWVg
305
306
307 # You can replace this text with custom content, and it will be preserved on regeneration
308 1;