2 package Debbugs::DB::Result::Bug;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::Bug - Bugs
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
36 __PACKAGE__->table("bug");
49 data_type: 'timestamp with time zone'
50 default_value: current_timestamp
52 original: {default_value => \"now()"}
58 data_type: 'timestamp with time zone'
59 default_value: current_timestamp
61 original: {default_value => \"now()"}
63 Time bug log was last modified
67 data_type: 'timestamp with time zone'
68 default_value: current_timestamp
70 original: {default_value => \"now()"}
72 Time bug status was last modified
80 True if bug has been archived
84 data_type: 'timestamp with time zone'
87 Time bug was last unarchived; null if bug has never been unarchived
92 default_value: (empty string)
95 Where bug has been forwarded to; empty if it has not been forwarded
100 default_value: (empty string)
103 Summary of the bug; empty if it has no summary
108 default_value: (empty string)
111 Outlook of the bug; empty if it has no outlook
132 Individual who did the -done; empty if it has never been -done
137 default_value: (empty string)
146 Individual who owns this bug; empty if no one owns it
151 default_value: (empty string)
160 Individual who submitted this bug; empty if there is no submitter
162 =head2 submitter_full
165 default_value: (empty string)
168 =head2 unknown_packages
171 default_value: (empty string)
174 Package name if the package is not known
178 __PACKAGE__->add_columns(
180 { data_type => "integer", is_nullable => 0 },
183 data_type => "timestamp with time zone",
184 default_value => \"current_timestamp",
186 original => { default_value => \"now()" },
190 data_type => "timestamp with time zone",
191 default_value => \"current_timestamp",
193 original => { default_value => \"now()" },
197 data_type => "timestamp with time zone",
198 default_value => \"current_timestamp",
200 original => { default_value => \"now()" },
203 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
205 { data_type => "timestamp with time zone", is_nullable => 1 },
207 { data_type => "text", default_value => "", is_nullable => 0 },
209 { data_type => "text", default_value => "", is_nullable => 0 },
211 { data_type => "text", default_value => "", is_nullable => 0 },
213 { data_type => "text", is_nullable => 0 },
215 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
217 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
219 { data_type => "text", default_value => "", is_nullable => 0 },
221 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
223 { data_type => "text", default_value => "", is_nullable => 0 },
225 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
227 { data_type => "text", default_value => "", is_nullable => 0 },
229 { data_type => "text", default_value => "", is_nullable => 0 },
242 __PACKAGE__->set_primary_key("id");
246 =head2 bug_affects_binpackages
250 Related object: L<Debbugs::DB::Result::BugAffectsBinpackage>
254 __PACKAGE__->has_many(
255 "bug_affects_binpackages",
256 "Debbugs::DB::Result::BugAffectsBinpackage",
257 { "foreign.bug" => "self.id" },
258 { cascade_copy => 0, cascade_delete => 0 },
261 =head2 bug_affects_srcpackages
265 Related object: L<Debbugs::DB::Result::BugAffectsSrcpackage>
269 __PACKAGE__->has_many(
270 "bug_affects_srcpackages",
271 "Debbugs::DB::Result::BugAffectsSrcpackage",
272 { "foreign.bug" => "self.id" },
273 { cascade_copy => 0, cascade_delete => 0 },
276 =head2 bug_binpackages
280 Related object: L<Debbugs::DB::Result::BugBinpackage>
284 __PACKAGE__->has_many(
286 "Debbugs::DB::Result::BugBinpackage",
287 { "foreign.bug" => "self.id" },
288 { cascade_copy => 0, cascade_delete => 0 },
291 =head2 bug_blocks_blocks
295 Related object: L<Debbugs::DB::Result::BugBlock>
299 __PACKAGE__->has_many(
301 "Debbugs::DB::Result::BugBlock",
302 { "foreign.blocks" => "self.id" },
303 { cascade_copy => 0, cascade_delete => 0 },
306 =head2 bug_blocks_bugs
310 Related object: L<Debbugs::DB::Result::BugBlock>
314 __PACKAGE__->has_many(
316 "Debbugs::DB::Result::BugBlock",
317 { "foreign.bug" => "self.id" },
318 { cascade_copy => 0, cascade_delete => 0 },
321 =head2 bug_merged_bugs
325 Related object: L<Debbugs::DB::Result::BugMerged>
329 __PACKAGE__->has_many(
331 "Debbugs::DB::Result::BugMerged",
332 { "foreign.bug" => "self.id" },
333 { cascade_copy => 0, cascade_delete => 0 },
336 =head2 bug_mergeds_merged
340 Related object: L<Debbugs::DB::Result::BugMerged>
344 __PACKAGE__->has_many(
345 "bug_mergeds_merged",
346 "Debbugs::DB::Result::BugMerged",
347 { "foreign.merged" => "self.id" },
348 { cascade_copy => 0, cascade_delete => 0 },
355 Related object: L<Debbugs::DB::Result::BugMessage>
359 __PACKAGE__->has_many(
361 "Debbugs::DB::Result::BugMessage",
362 { "foreign.bug" => "self.id" },
363 { cascade_copy => 0, cascade_delete => 0 },
366 =head2 bug_srcpackages
370 Related object: L<Debbugs::DB::Result::BugSrcpackage>
374 __PACKAGE__->has_many(
376 "Debbugs::DB::Result::BugSrcpackage",
377 { "foreign.bug" => "self.id" },
378 { cascade_copy => 0, cascade_delete => 0 },
381 =head2 bug_status_caches
385 Related object: L<Debbugs::DB::Result::BugStatusCache>
389 __PACKAGE__->has_many(
391 "Debbugs::DB::Result::BugStatusCache",
392 { "foreign.bug" => "self.id" },
393 { cascade_copy => 0, cascade_delete => 0 },
400 Related object: L<Debbugs::DB::Result::BugTag>
404 __PACKAGE__->has_many(
406 "Debbugs::DB::Result::BugTag",
407 { "foreign.bug" => "self.id" },
408 { cascade_copy => 0, cascade_delete => 0 },
415 Related object: L<Debbugs::DB::Result::BugUserTag>
419 __PACKAGE__->has_many(
421 "Debbugs::DB::Result::BugUserTag",
422 { "foreign.bug" => "self.id" },
423 { cascade_copy => 0, cascade_delete => 0 },
430 Related object: L<Debbugs::DB::Result::BugVer>
434 __PACKAGE__->has_many(
436 "Debbugs::DB::Result::BugVer",
437 { "foreign.bug" => "self.id" },
438 { cascade_copy => 0, cascade_delete => 0 },
445 Related object: L<Debbugs::DB::Result::Correspondent>
449 __PACKAGE__->belongs_to(
451 "Debbugs::DB::Result::Correspondent",
456 on_delete => "NO ACTION",
457 on_update => "NO ACTION",
465 Related object: L<Debbugs::DB::Result::Correspondent>
469 __PACKAGE__->belongs_to(
471 "Debbugs::DB::Result::Correspondent",
476 on_delete => "NO ACTION",
477 on_update => "NO ACTION",
485 Related object: L<Debbugs::DB::Result::Severity>
489 __PACKAGE__->belongs_to(
491 "Debbugs::DB::Result::Severity",
492 { id => "severity" },
493 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
500 Related object: L<Debbugs::DB::Result::Correspondent>
504 __PACKAGE__->belongs_to(
506 "Debbugs::DB::Result::Correspondent",
507 { id => "submitter" },
511 on_delete => "NO ACTION",
512 on_update => "NO ACTION",
517 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
518 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iaipVETTaokcFNrICfIEAw
520 # You can replace this text with custom code or comments, and it will be preserved on regeneration