]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Bug.pm
50673120a50fd6c5a20a796424af070bc83b6bcb
[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 done
119
120   data_type: 'text'
121   default_value: (empty string)
122   is_nullable: 0
123
124 Individual who did the -done; empty if it has never been -done
125
126 =head2 owner
127
128   data_type: 'text'
129   default_value: (empty string)
130   is_nullable: 0
131
132 Individual who owns this bug; empty if no one owns it
133
134 =head2 submitter
135
136   data_type: 'text'
137   default_value: (empty string)
138   is_nullable: 0
139
140 Individual who submitted this bug; empty if there is no submitter
141
142 =head2 unknown_packages
143
144   data_type: 'text'
145   default_value: (empty string)
146   is_nullable: 0
147
148 Package name if the package is not known
149
150 =head2 severity
151
152   data_type: 'enum'
153   default_value: 'normal'
154   extra: {custom_type_name => "bug_severity",list => ["wishlist","minor","normal","important","serious","grave","critical"]}
155   is_nullable: 1
156
157 Bug severity
158
159 =cut
160
161 __PACKAGE__->add_columns(
162   "id",
163   { data_type => "integer", is_nullable => 0 },
164   "creation",
165   {
166     data_type     => "timestamp with time zone",
167     default_value => \"current_timestamp",
168     is_nullable   => 0,
169     original      => { default_value => \"now()" },
170   },
171   "log_modified",
172   {
173     data_type     => "timestamp with time zone",
174     default_value => \"current_timestamp",
175     is_nullable   => 0,
176     original      => { default_value => \"now()" },
177   },
178   "last_modified",
179   {
180     data_type     => "timestamp with time zone",
181     default_value => \"current_timestamp",
182     is_nullable   => 0,
183     original      => { default_value => \"now()" },
184   },
185   "archived",
186   { data_type => "boolean", default_value => \"false", is_nullable => 0 },
187   "unarchived",
188   { data_type => "timestamp with time zone", is_nullable => 1 },
189   "forwarded",
190   { data_type => "text", default_value => "", is_nullable => 0 },
191   "summary",
192   { data_type => "text", default_value => "", is_nullable => 0 },
193   "outlook",
194   { data_type => "text", default_value => "", is_nullable => 0 },
195   "subject",
196   { data_type => "text", is_nullable => 0 },
197   "done",
198   { data_type => "text", default_value => "", is_nullable => 0 },
199   "owner",
200   { data_type => "text", default_value => "", is_nullable => 0 },
201   "submitter",
202   { data_type => "text", default_value => "", is_nullable => 0 },
203   "unknown_packages",
204   { data_type => "text", default_value => "", is_nullable => 0 },
205   "severity",
206   {
207     data_type => "enum",
208     default_value => "normal",
209     extra => {
210       custom_type_name => "bug_severity",
211       list => [
212         "wishlist",
213         "minor",
214         "normal",
215         "important",
216         "serious",
217         "grave",
218         "critical",
219       ],
220     },
221     is_nullable => 1,
222   },
223 );
224
225 =head1 PRIMARY KEY
226
227 =over 4
228
229 =item * L</id>
230
231 =back
232
233 =cut
234
235 __PACKAGE__->set_primary_key("id");
236
237 =head1 RELATIONS
238
239 =head2 bug_binpackages
240
241 Type: has_many
242
243 Related object: L<Debbugs::DB::Result::BugBinpackage>
244
245 =cut
246
247 __PACKAGE__->has_many(
248   "bug_binpackages",
249   "Debbugs::DB::Result::BugBinpackage",
250   { "foreign.bug_id" => "self.id" },
251   { cascade_copy => 0, cascade_delete => 0 },
252 );
253
254 =head2 bug_blocks_blocks
255
256 Type: has_many
257
258 Related object: L<Debbugs::DB::Result::BugBlock>
259
260 =cut
261
262 __PACKAGE__->has_many(
263   "bug_blocks_blocks",
264   "Debbugs::DB::Result::BugBlock",
265   { "foreign.blocks" => "self.id" },
266   { cascade_copy => 0, cascade_delete => 0 },
267 );
268
269 =head2 bug_blocks_bugs
270
271 Type: has_many
272
273 Related object: L<Debbugs::DB::Result::BugBlock>
274
275 =cut
276
277 __PACKAGE__->has_many(
278   "bug_blocks_bugs",
279   "Debbugs::DB::Result::BugBlock",
280   { "foreign.bug_id" => "self.id" },
281   { cascade_copy => 0, cascade_delete => 0 },
282 );
283
284 =head2 bug_merged_bugs
285
286 Type: has_many
287
288 Related object: L<Debbugs::DB::Result::BugMerged>
289
290 =cut
291
292 __PACKAGE__->has_many(
293   "bug_merged_bugs",
294   "Debbugs::DB::Result::BugMerged",
295   { "foreign.bug_id" => "self.id" },
296   { cascade_copy => 0, cascade_delete => 0 },
297 );
298
299 =head2 bug_messages
300
301 Type: has_many
302
303 Related object: L<Debbugs::DB::Result::BugMessage>
304
305 =cut
306
307 __PACKAGE__->has_many(
308   "bug_messages",
309   "Debbugs::DB::Result::BugMessage",
310   { "foreign.bug" => "self.id" },
311   { cascade_copy => 0, cascade_delete => 0 },
312 );
313
314 =head2 bug_srcpackages
315
316 Type: has_many
317
318 Related object: L<Debbugs::DB::Result::BugSrcpackage>
319
320 =cut
321
322 __PACKAGE__->has_many(
323   "bug_srcpackages",
324   "Debbugs::DB::Result::BugSrcpackage",
325   { "foreign.bug_id" => "self.id" },
326   { cascade_copy => 0, cascade_delete => 0 },
327 );
328
329 =head2 bug_tags
330
331 Type: has_many
332
333 Related object: L<Debbugs::DB::Result::BugTag>
334
335 =cut
336
337 __PACKAGE__->has_many(
338   "bug_tags",
339   "Debbugs::DB::Result::BugTag",
340   { "foreign.bug_id" => "self.id" },
341   { cascade_copy => 0, cascade_delete => 0 },
342 );
343
344 =head2 bug_vers
345
346 Type: has_many
347
348 Related object: L<Debbugs::DB::Result::BugVer>
349
350 =cut
351
352 __PACKAGE__->has_many(
353   "bug_vers",
354   "Debbugs::DB::Result::BugVer",
355   { "foreign.bug_id" => "self.id" },
356   { cascade_copy => 0, cascade_delete => 0 },
357 );
358
359 =head2 bugs_merged_merged
360
361 Type: has_many
362
363 Related object: L<Debbugs::DB::Result::BugMerged>
364
365 =cut
366
367 __PACKAGE__->has_many(
368   "bugs_merged_merged",
369   "Debbugs::DB::Result::BugMerged",
370   { "foreign.merged" => "self.id" },
371   { cascade_copy => 0, cascade_delete => 0 },
372 );
373
374
375 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-22 16:20:31
376 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cvwpg/d7shs9bxFOQZhNVg
377
378
379 # You can replace this text with custom code or comments, and it will be preserved on regeneration
380 1;