]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Bug.pm
update result classes for new relationships
[debbugs.git] / Debbugs / DB / Result / Bug.pm
1 use utf8;
2 package Debbugs::DB::Result::Bug;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::Bug - Bugs
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 COMPONENTS LOADED
19
20 =over 4
21
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23
24 =back
25
26 =cut
27
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29
30 =head1 TABLE: C<bug>
31
32 =cut
33
34 __PACKAGE__->table("bug");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_nullable: 0
42
43 Bug number
44
45 =head2 creation
46
47   data_type: 'timestamp with time zone'
48   default_value: current_timestamp
49   is_nullable: 0
50   original: {default_value => \"now()"}
51
52 Time bug created
53
54 =head2 log_modified
55
56   data_type: 'timestamp with time zone'
57   default_value: current_timestamp
58   is_nullable: 0
59   original: {default_value => \"now()"}
60
61 Time bug log was last modified
62
63 =head2 last_modified
64
65   data_type: 'timestamp with time zone'
66   default_value: current_timestamp
67   is_nullable: 0
68   original: {default_value => \"now()"}
69
70 Time bug status was last modified
71
72 =head2 archived
73
74   data_type: 'boolean'
75   default_value: false
76   is_nullable: 0
77
78 True if bug has been archived
79
80 =head2 unarchived
81
82   data_type: 'timestamp with time zone'
83   is_nullable: 1
84
85 Time bug was last unarchived; null if bug has never been unarchived
86
87 =head2 forwarded
88
89   data_type: 'text'
90   default_value: (empty string)
91   is_nullable: 0
92
93 Where bug has been forwarded to; empty if it has not been forwarded
94
95 =head2 summary
96
97   data_type: 'text'
98   default_value: (empty string)
99   is_nullable: 0
100
101 Summary of the bug; empty if it has no summary
102
103 =head2 outlook
104
105   data_type: 'text'
106   default_value: (empty string)
107   is_nullable: 0
108
109 Outlook of the bug; empty if it has no outlook
110
111 =head2 subject
112
113   data_type: 'text'
114   is_nullable: 0
115
116 Subject of the bug
117
118 =head2 severity
119
120   data_type: 'integer'
121   is_foreign_key: 1
122   is_nullable: 0
123
124 =head2 done
125
126   data_type: 'integer'
127   is_foreign_key: 1
128   is_nullable: 1
129
130 Individual who did the -done; empty if it has never been -done
131
132 =head2 done_full
133
134   data_type: 'text'
135   default_value: (empty string)
136   is_nullable: 0
137
138 =head2 owner
139
140   data_type: 'integer'
141   is_foreign_key: 1
142   is_nullable: 1
143
144 Individual who owns this bug; empty if no one owns it
145
146 =head2 owner_full
147
148   data_type: 'text'
149   default_value: (empty string)
150   is_nullable: 0
151
152 =head2 submitter
153
154   data_type: 'integer'
155   is_foreign_key: 1
156   is_nullable: 1
157
158 Individual who submitted this bug; empty if there is no submitter
159
160 =head2 submitter_full
161
162   data_type: 'text'
163   default_value: (empty string)
164   is_nullable: 0
165
166 =head2 unknown_packages
167
168   data_type: 'text'
169   default_value: (empty string)
170   is_nullable: 0
171
172 Package name if the package is not known
173
174 =cut
175
176 __PACKAGE__->add_columns(
177   "id",
178   { data_type => "integer", is_nullable => 0 },
179   "creation",
180   {
181     data_type     => "timestamp with time zone",
182     default_value => \"current_timestamp",
183     is_nullable   => 0,
184     original      => { default_value => \"now()" },
185   },
186   "log_modified",
187   {
188     data_type     => "timestamp with time zone",
189     default_value => \"current_timestamp",
190     is_nullable   => 0,
191     original      => { default_value => \"now()" },
192   },
193   "last_modified",
194   {
195     data_type     => "timestamp with time zone",
196     default_value => \"current_timestamp",
197     is_nullable   => 0,
198     original      => { default_value => \"now()" },
199   },
200   "archived",
201   { data_type => "boolean", default_value => \"false", is_nullable => 0 },
202   "unarchived",
203   { data_type => "timestamp with time zone", is_nullable => 1 },
204   "forwarded",
205   { data_type => "text", default_value => "", is_nullable => 0 },
206   "summary",
207   { data_type => "text", default_value => "", is_nullable => 0 },
208   "outlook",
209   { data_type => "text", default_value => "", is_nullable => 0 },
210   "subject",
211   { data_type => "text", is_nullable => 0 },
212   "severity",
213   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
214   "done",
215   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
216   "done_full",
217   { data_type => "text", default_value => "", is_nullable => 0 },
218   "owner",
219   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
220   "owner_full",
221   { data_type => "text", default_value => "", is_nullable => 0 },
222   "submitter",
223   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
224   "submitter_full",
225   { data_type => "text", default_value => "", is_nullable => 0 },
226   "unknown_packages",
227   { data_type => "text", default_value => "", is_nullable => 0 },
228 );
229
230 =head1 PRIMARY KEY
231
232 =over 4
233
234 =item * L</id>
235
236 =back
237
238 =cut
239
240 __PACKAGE__->set_primary_key("id");
241
242 =head1 RELATIONS
243
244 =head2 bug_binpackages
245
246 Type: has_many
247
248 Related object: L<Debbugs::DB::Result::BugBinpackage>
249
250 =cut
251
252 __PACKAGE__->has_many(
253   "bug_binpackages",
254   "Debbugs::DB::Result::BugBinpackage",
255   { "foreign.bug" => "self.id" },
256   { cascade_copy => 0, cascade_delete => 0 },
257 );
258
259 =head2 bug_blocks_blocks
260
261 Type: has_many
262
263 Related object: L<Debbugs::DB::Result::BugBlock>
264
265 =cut
266
267 __PACKAGE__->has_many(
268   "bug_blocks_blocks",
269   "Debbugs::DB::Result::BugBlock",
270   { "foreign.blocks" => "self.id" },
271   { cascade_copy => 0, cascade_delete => 0 },
272 );
273
274 =head2 bug_blocks_bugs
275
276 Type: has_many
277
278 Related object: L<Debbugs::DB::Result::BugBlock>
279
280 =cut
281
282 __PACKAGE__->has_many(
283   "bug_blocks_bugs",
284   "Debbugs::DB::Result::BugBlock",
285   { "foreign.bug" => "self.id" },
286   { cascade_copy => 0, cascade_delete => 0 },
287 );
288
289 =head2 bug_merged_bugs
290
291 Type: has_many
292
293 Related object: L<Debbugs::DB::Result::BugMerged>
294
295 =cut
296
297 __PACKAGE__->has_many(
298   "bug_merged_bugs",
299   "Debbugs::DB::Result::BugMerged",
300   { "foreign.bug" => "self.id" },
301   { cascade_copy => 0, cascade_delete => 0 },
302 );
303
304 =head2 bug_messages
305
306 Type: has_many
307
308 Related object: L<Debbugs::DB::Result::BugMessage>
309
310 =cut
311
312 __PACKAGE__->has_many(
313   "bug_messages",
314   "Debbugs::DB::Result::BugMessage",
315   { "foreign.bug" => "self.id" },
316   { cascade_copy => 0, cascade_delete => 0 },
317 );
318
319 =head2 bug_srcpackages
320
321 Type: has_many
322
323 Related object: L<Debbugs::DB::Result::BugSrcpackage>
324
325 =cut
326
327 __PACKAGE__->has_many(
328   "bug_srcpackages",
329   "Debbugs::DB::Result::BugSrcpackage",
330   { "foreign.bug" => "self.id" },
331   { cascade_copy => 0, cascade_delete => 0 },
332 );
333
334 =head2 bug_status_caches
335
336 Type: has_many
337
338 Related object: L<Debbugs::DB::Result::BugStatusCache>
339
340 =cut
341
342 __PACKAGE__->has_many(
343   "bug_status_caches",
344   "Debbugs::DB::Result::BugStatusCache",
345   { "foreign.bug" => "self.id" },
346   { cascade_copy => 0, cascade_delete => 0 },
347 );
348
349 =head2 bug_tags
350
351 Type: has_many
352
353 Related object: L<Debbugs::DB::Result::BugTag>
354
355 =cut
356
357 __PACKAGE__->has_many(
358   "bug_tags",
359   "Debbugs::DB::Result::BugTag",
360   { "foreign.bug" => "self.id" },
361   { cascade_copy => 0, cascade_delete => 0 },
362 );
363
364 =head2 bug_vers
365
366 Type: has_many
367
368 Related object: L<Debbugs::DB::Result::BugVer>
369
370 =cut
371
372 __PACKAGE__->has_many(
373   "bug_vers",
374   "Debbugs::DB::Result::BugVer",
375   { "foreign.bug" => "self.id" },
376   { cascade_copy => 0, cascade_delete => 0 },
377 );
378
379 =head2 bugs_merged_merged
380
381 Type: has_many
382
383 Related object: L<Debbugs::DB::Result::BugMerged>
384
385 =cut
386
387 __PACKAGE__->has_many(
388   "bugs_merged_merged",
389   "Debbugs::DB::Result::BugMerged",
390   { "foreign.merged" => "self.id" },
391   { cascade_copy => 0, cascade_delete => 0 },
392 );
393
394 =head2 done
395
396 Type: belongs_to
397
398 Related object: L<Debbugs::DB::Result::Correspondent>
399
400 =cut
401
402 __PACKAGE__->belongs_to(
403   "done",
404   "Debbugs::DB::Result::Correspondent",
405   { id => "done" },
406   {
407     is_deferrable => 1,
408     join_type     => "LEFT",
409     on_delete     => "CASCADE",
410     on_update     => "CASCADE",
411   },
412 );
413
414 =head2 owner
415
416 Type: belongs_to
417
418 Related object: L<Debbugs::DB::Result::Correspondent>
419
420 =cut
421
422 __PACKAGE__->belongs_to(
423   "owner",
424   "Debbugs::DB::Result::Correspondent",
425   { id => "owner" },
426   {
427     is_deferrable => 1,
428     join_type     => "LEFT",
429     on_delete     => "CASCADE",
430     on_update     => "CASCADE",
431   },
432 );
433
434 =head2 severity
435
436 Type: belongs_to
437
438 Related object: L<Debbugs::DB::Result::Severity>
439
440 =cut
441
442 __PACKAGE__->belongs_to(
443   "severity",
444   "Debbugs::DB::Result::Severity",
445   { id => "severity" },
446   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
447 );
448
449 =head2 submitter
450
451 Type: belongs_to
452
453 Related object: L<Debbugs::DB::Result::Correspondent>
454
455 =cut
456
457 __PACKAGE__->belongs_to(
458   "submitter",
459   "Debbugs::DB::Result::Correspondent",
460   { id => "submitter" },
461   {
462     is_deferrable => 1,
463     join_type     => "LEFT",
464     on_delete     => "CASCADE",
465     on_update     => "CASCADE",
466   },
467 );
468
469
470 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-04-01 15:59:31
471 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hRsCzIGJB1krEYpMKmSVYw
472
473 # You can replace this text with custom code or comments, and it will be preserved on regeneration
474 1;