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