]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Bug.pm
7cab97fbdfcfab249591a439ad8863121589035c
[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 =cut
151
152 __PACKAGE__->add_columns(
153   "id",
154   { data_type => "integer", is_nullable => 0 },
155   "creation",
156   {
157     data_type     => "timestamp with time zone",
158     default_value => \"current_timestamp",
159     is_nullable   => 0,
160     original      => { default_value => \"now()" },
161   },
162   "log_modified",
163   {
164     data_type     => "timestamp with time zone",
165     default_value => \"current_timestamp",
166     is_nullable   => 0,
167     original      => { default_value => \"now()" },
168   },
169   "last_modified",
170   {
171     data_type     => "timestamp with time zone",
172     default_value => \"current_timestamp",
173     is_nullable   => 0,
174     original      => { default_value => \"now()" },
175   },
176   "archived",
177   { data_type => "boolean", default_value => \"false", is_nullable => 0 },
178   "unarchived",
179   { data_type => "timestamp with time zone", is_nullable => 1 },
180   "forwarded",
181   { data_type => "text", default_value => "", is_nullable => 0 },
182   "summary",
183   { data_type => "text", default_value => "", is_nullable => 0 },
184   "outlook",
185   { data_type => "text", default_value => "", is_nullable => 0 },
186   "subject",
187   { data_type => "text", is_nullable => 0 },
188   "done",
189   { data_type => "text", default_value => "", is_nullable => 0 },
190   "owner",
191   { data_type => "text", default_value => "", is_nullable => 0 },
192   "submitter",
193   { data_type => "text", default_value => "", is_nullable => 0 },
194   "unknown_packages",
195   { data_type => "text", default_value => "", is_nullable => 0 },
196 );
197
198 =head1 PRIMARY KEY
199
200 =over 4
201
202 =item * L</id>
203
204 =back
205
206 =cut
207
208 __PACKAGE__->set_primary_key("id");
209
210 =head1 RELATIONS
211
212 =head2 bug_binpackages
213
214 Type: has_many
215
216 Related object: L<Debbugs::DB::Result::BugBinpackage>
217
218 =cut
219
220 __PACKAGE__->has_many(
221   "bug_binpackages",
222   "Debbugs::DB::Result::BugBinpackage",
223   { "foreign.bug" => "self.id" },
224   { cascade_copy => 0, cascade_delete => 0 },
225 );
226
227 =head2 bug_blocks_blocks
228
229 Type: has_many
230
231 Related object: L<Debbugs::DB::Result::BugBlock>
232
233 =cut
234
235 __PACKAGE__->has_many(
236   "bug_blocks_blocks",
237   "Debbugs::DB::Result::BugBlock",
238   { "foreign.blocks" => "self.id" },
239   { cascade_copy => 0, cascade_delete => 0 },
240 );
241
242 =head2 bug_blocks_bugs
243
244 Type: has_many
245
246 Related object: L<Debbugs::DB::Result::BugBlock>
247
248 =cut
249
250 __PACKAGE__->has_many(
251   "bug_blocks_bugs",
252   "Debbugs::DB::Result::BugBlock",
253   { "foreign.bug" => "self.id" },
254   { cascade_copy => 0, cascade_delete => 0 },
255 );
256
257 =head2 bug_merged_bugs
258
259 Type: has_many
260
261 Related object: L<Debbugs::DB::Result::BugMerged>
262
263 =cut
264
265 __PACKAGE__->has_many(
266   "bug_merged_bugs",
267   "Debbugs::DB::Result::BugMerged",
268   { "foreign.bug" => "self.id" },
269   { cascade_copy => 0, cascade_delete => 0 },
270 );
271
272 =head2 bug_messages
273
274 Type: has_many
275
276 Related object: L<Debbugs::DB::Result::BugMessage>
277
278 =cut
279
280 __PACKAGE__->has_many(
281   "bug_messages",
282   "Debbugs::DB::Result::BugMessage",
283   { "foreign.bug" => "self.id" },
284   { cascade_copy => 0, cascade_delete => 0 },
285 );
286
287 =head2 bug_severity
288
289 Type: might_have
290
291 Related object: L<Debbugs::DB::Result::BugSeverity>
292
293 =cut
294
295 __PACKAGE__->might_have(
296   "bug_severity",
297   "Debbugs::DB::Result::BugSeverity",
298   { "foreign.bug" => "self.id" },
299   { cascade_copy => 0, cascade_delete => 0 },
300 );
301
302 =head2 bug_srcpackages
303
304 Type: has_many
305
306 Related object: L<Debbugs::DB::Result::BugSrcpackage>
307
308 =cut
309
310 __PACKAGE__->has_many(
311   "bug_srcpackages",
312   "Debbugs::DB::Result::BugSrcpackage",
313   { "foreign.bug" => "self.id" },
314   { cascade_copy => 0, cascade_delete => 0 },
315 );
316
317 =head2 bug_submitters
318
319 Type: has_many
320
321 Related object: L<Debbugs::DB::Result::BugSubmitter>
322
323 =cut
324
325 __PACKAGE__->has_many(
326   "bug_submitters",
327   "Debbugs::DB::Result::BugSubmitter",
328   { "foreign.bug" => "self.id" },
329   { cascade_copy => 0, cascade_delete => 0 },
330 );
331
332 =head2 bug_tags
333
334 Type: has_many
335
336 Related object: L<Debbugs::DB::Result::BugTag>
337
338 =cut
339
340 __PACKAGE__->has_many(
341   "bug_tags",
342   "Debbugs::DB::Result::BugTag",
343   { "foreign.bug" => "self.id" },
344   { cascade_copy => 0, cascade_delete => 0 },
345 );
346
347 =head2 bug_vers
348
349 Type: has_many
350
351 Related object: L<Debbugs::DB::Result::BugVer>
352
353 =cut
354
355 __PACKAGE__->has_many(
356   "bug_vers",
357   "Debbugs::DB::Result::BugVer",
358   { "foreign.bug" => "self.id" },
359   { cascade_copy => 0, cascade_delete => 0 },
360 );
361
362 =head2 bugs_done_by
363
364 Type: has_many
365
366 Related object: L<Debbugs::DB::Result::BugDoneBy>
367
368 =cut
369
370 __PACKAGE__->has_many(
371   "bugs_done_by",
372   "Debbugs::DB::Result::BugDoneBy",
373   { "foreign.bug" => "self.id" },
374   { cascade_copy => 0, cascade_delete => 0 },
375 );
376
377 =head2 bugs_merged_merged
378
379 Type: has_many
380
381 Related object: L<Debbugs::DB::Result::BugMerged>
382
383 =cut
384
385 __PACKAGE__->has_many(
386   "bugs_merged_merged",
387   "Debbugs::DB::Result::BugMerged",
388   { "foreign.merged" => "self.id" },
389   { cascade_copy => 0, cascade_delete => 0 },
390 );
391
392
393 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53
394 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cPIz8V6KUWZip+5Dvi7+4Q
395
396
397 # You can replace this text with custom code or comments, and it will be preserved on regeneration
398 1;