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>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
34 __PACKAGE__->table("bug");
47 data_type: 'timestamp with time zone'
48 default_value: current_timestamp
50 original: {default_value => \"now()"}
56 data_type: 'timestamp with time zone'
57 default_value: current_timestamp
59 original: {default_value => \"now()"}
61 Time bug log was last modified
65 data_type: 'timestamp with time zone'
66 default_value: current_timestamp
68 original: {default_value => \"now()"}
70 Time bug status was last modified
78 True if bug has been archived
82 data_type: 'timestamp with time zone'
85 Time bug was last unarchived; null if bug has never been unarchived
90 default_value: (empty string)
93 Where bug has been forwarded to; empty if it has not been forwarded
98 default_value: (empty string)
101 Summary of the bug; empty if it has no summary
106 default_value: (empty string)
109 Outlook of the bug; empty if it has no outlook
121 default_value: (empty string)
124 Individual who did the -done; empty if it has never been -done
129 default_value: (empty string)
132 Individual who did the -done; empty if it has never been -done
134 =head2 unknown_packages
137 default_value: (empty string)
140 Package name if the package is not known
145 default_value: 'normal'
146 extra: {custom_type_name => "bug_severity",list => ["wishlist","minor","normal","important","serious","grave","critical"]}
153 __PACKAGE__->add_columns(
155 { data_type => "integer", is_nullable => 0 },
158 data_type => "timestamp with time zone",
159 default_value => \"current_timestamp",
161 original => { default_value => \"now()" },
165 data_type => "timestamp with time zone",
166 default_value => \"current_timestamp",
168 original => { default_value => \"now()" },
172 data_type => "timestamp with time zone",
173 default_value => \"current_timestamp",
175 original => { default_value => \"now()" },
178 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
180 { data_type => "timestamp with time zone", is_nullable => 1 },
182 { data_type => "text", default_value => "", is_nullable => 0 },
184 { data_type => "text", default_value => "", is_nullable => 0 },
186 { data_type => "text", default_value => "", is_nullable => 0 },
188 { data_type => "text", is_nullable => 0 },
190 { data_type => "text", default_value => "", is_nullable => 0 },
192 { data_type => "text", default_value => "", is_nullable => 0 },
194 { data_type => "text", default_value => "", is_nullable => 0 },
198 default_value => "normal",
200 custom_type_name => "bug_severity",
225 __PACKAGE__->set_primary_key("id");
229 =head2 bug_binpackages
233 Related object: L<Debbugs::DB::Result::BugBinpackage>
237 __PACKAGE__->has_many(
239 "Debbugs::DB::Result::BugBinpackage",
240 { "foreign.bug_id" => "self.id" },
241 { cascade_copy => 0, cascade_delete => 0 },
244 =head2 bug_blocks_blocks
248 Related object: L<Debbugs::DB::Result::BugBlock>
252 __PACKAGE__->has_many(
254 "Debbugs::DB::Result::BugBlock",
255 { "foreign.blocks" => "self.id" },
256 { cascade_copy => 0, cascade_delete => 0 },
259 =head2 bug_blocks_bugs
263 Related object: L<Debbugs::DB::Result::BugBlock>
267 __PACKAGE__->has_many(
269 "Debbugs::DB::Result::BugBlock",
270 { "foreign.bug_id" => "self.id" },
271 { cascade_copy => 0, cascade_delete => 0 },
274 =head2 bug_merged_bugs
278 Related object: L<Debbugs::DB::Result::BugMerged>
282 __PACKAGE__->has_many(
284 "Debbugs::DB::Result::BugMerged",
285 { "foreign.bug_id" => "self.id" },
286 { cascade_copy => 0, cascade_delete => 0 },
293 Related object: L<Debbugs::DB::Result::BugMessage>
297 __PACKAGE__->has_many(
299 "Debbugs::DB::Result::BugMessage",
300 { "foreign.bug" => "self.id" },
301 { cascade_copy => 0, cascade_delete => 0 },
304 =head2 bug_srcpackages
308 Related object: L<Debbugs::DB::Result::BugSrcpackage>
312 __PACKAGE__->has_many(
314 "Debbugs::DB::Result::BugSrcpackage",
315 { "foreign.bug_id" => "self.id" },
316 { cascade_copy => 0, cascade_delete => 0 },
323 Related object: L<Debbugs::DB::Result::BugTag>
327 __PACKAGE__->has_many(
329 "Debbugs::DB::Result::BugTag",
330 { "foreign.bug_id" => "self.id" },
331 { cascade_copy => 0, cascade_delete => 0 },
338 Related object: L<Debbugs::DB::Result::BugVer>
342 __PACKAGE__->has_many(
344 "Debbugs::DB::Result::BugVer",
345 { "foreign.bug_id" => "self.id" },
346 { cascade_copy => 0, cascade_delete => 0 },
349 =head2 bugs_merged_merged
353 Related object: L<Debbugs::DB::Result::BugMerged>
357 __PACKAGE__->has_many(
358 "bugs_merged_merged",
359 "Debbugs::DB::Result::BugMerged",
360 { "foreign.merged" => "self.id" },
361 { cascade_copy => 0, cascade_delete => 0 },
365 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 18:11:35
366 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eW7Cg2dL1CbA9Rn+nzZqOg
369 # You can replace this text with custom code or comments, and it will be preserved on regeneration