]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Bug.pm
add initial work on sql for debbugs
[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
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 =head2 creation
44
45   data_type: 'timestamp with time zone'
46   default_value: current_timestamp
47   is_nullable: 0
48   original: {default_value => \"now()"}
49
50 =head2 log_modified
51
52   data_type: 'timestamp with time zone'
53   default_value: current_timestamp
54   is_nullable: 0
55   original: {default_value => \"now()"}
56
57 =head2 last_modified
58
59   data_type: 'timestamp with time zone'
60   default_value: current_timestamp
61   is_nullable: 0
62   original: {default_value => \"now()"}
63
64 =head2 archived
65
66   data_type: 'boolean'
67   default_value: false
68   is_nullable: 0
69
70 =head2 unarchived
71
72   data_type: 'timestamp with time zone'
73   is_nullable: 1
74
75 =head2 forwarded
76
77   data_type: 'text'
78   default_value: (empty string)
79   is_nullable: 0
80
81 =head2 summary
82
83   data_type: 'text'
84   default_value: (empty string)
85   is_nullable: 0
86
87 =head2 outlook
88
89   data_type: 'text'
90   default_value: (empty string)
91   is_nullable: 0
92
93 =head2 subject
94
95   data_type: 'text'
96   is_nullable: 0
97
98 =head2 done
99
100   data_type: 'text'
101   default_value: (empty string)
102   is_nullable: 0
103
104 =head2 owner
105
106   data_type: 'text'
107   default_value: (empty string)
108   is_nullable: 0
109
110 =head2 unknown_packages
111
112   data_type: 'text'
113   default_value: (empty string)
114   is_nullable: 0
115
116 =head2 severity
117
118   data_type: 'enum'
119   default_value: 'normal'
120   extra: {custom_type_name => "bug_severity",list => ["wishlist","minor","normal","important","serious","grave","critical"]}
121   is_nullable: 1
122
123 =cut
124
125 __PACKAGE__->add_columns(
126   "id",
127   { data_type => "integer", is_nullable => 0 },
128   "creation",
129   {
130     data_type     => "timestamp with time zone",
131     default_value => \"current_timestamp",
132     is_nullable   => 0,
133     original      => { default_value => \"now()" },
134   },
135   "log_modified",
136   {
137     data_type     => "timestamp with time zone",
138     default_value => \"current_timestamp",
139     is_nullable   => 0,
140     original      => { default_value => \"now()" },
141   },
142   "last_modified",
143   {
144     data_type     => "timestamp with time zone",
145     default_value => \"current_timestamp",
146     is_nullable   => 0,
147     original      => { default_value => \"now()" },
148   },
149   "archived",
150   { data_type => "boolean", default_value => \"false", is_nullable => 0 },
151   "unarchived",
152   { data_type => "timestamp with time zone", is_nullable => 1 },
153   "forwarded",
154   { data_type => "text", default_value => "", is_nullable => 0 },
155   "summary",
156   { data_type => "text", default_value => "", is_nullable => 0 },
157   "outlook",
158   { data_type => "text", default_value => "", is_nullable => 0 },
159   "subject",
160   { data_type => "text", is_nullable => 0 },
161   "done",
162   { data_type => "text", default_value => "", is_nullable => 0 },
163   "owner",
164   { data_type => "text", default_value => "", is_nullable => 0 },
165   "unknown_packages",
166   { data_type => "text", default_value => "", is_nullable => 0 },
167   "severity",
168   {
169     data_type => "enum",
170     default_value => "normal",
171     extra => {
172       custom_type_name => "bug_severity",
173       list => [
174         "wishlist",
175         "minor",
176         "normal",
177         "important",
178         "serious",
179         "grave",
180         "critical",
181       ],
182     },
183     is_nullable => 1,
184   },
185 );
186
187 =head1 PRIMARY KEY
188
189 =over 4
190
191 =item * L</id>
192
193 =back
194
195 =cut
196
197 __PACKAGE__->set_primary_key("id");
198
199 =head1 RELATIONS
200
201 =head2 bug_binpackages
202
203 Type: has_many
204
205 Related object: L<Debbugs::DB::Result::BugBinpackage>
206
207 =cut
208
209 __PACKAGE__->has_many(
210   "bug_binpackages",
211   "Debbugs::DB::Result::BugBinpackage",
212   { "foreign.bug_id" => "self.id" },
213   { cascade_copy => 0, cascade_delete => 0 },
214 );
215
216 =head2 bug_blocks_blocks
217
218 Type: has_many
219
220 Related object: L<Debbugs::DB::Result::BugBlock>
221
222 =cut
223
224 __PACKAGE__->has_many(
225   "bug_blocks_blocks",
226   "Debbugs::DB::Result::BugBlock",
227   { "foreign.blocks" => "self.id" },
228   { cascade_copy => 0, cascade_delete => 0 },
229 );
230
231 =head2 bug_blocks_bugs
232
233 Type: has_many
234
235 Related object: L<Debbugs::DB::Result::BugBlock>
236
237 =cut
238
239 __PACKAGE__->has_many(
240   "bug_blocks_bugs",
241   "Debbugs::DB::Result::BugBlock",
242   { "foreign.bug_id" => "self.id" },
243   { cascade_copy => 0, cascade_delete => 0 },
244 );
245
246 =head2 bug_merged_bugs
247
248 Type: has_many
249
250 Related object: L<Debbugs::DB::Result::BugMerged>
251
252 =cut
253
254 __PACKAGE__->has_many(
255   "bug_merged_bugs",
256   "Debbugs::DB::Result::BugMerged",
257   { "foreign.bug_id" => "self.id" },
258   { cascade_copy => 0, cascade_delete => 0 },
259 );
260
261 =head2 bug_srcpackages
262
263 Type: has_many
264
265 Related object: L<Debbugs::DB::Result::BugSrcpackage>
266
267 =cut
268
269 __PACKAGE__->has_many(
270   "bug_srcpackages",
271   "Debbugs::DB::Result::BugSrcpackage",
272   { "foreign.bug_id" => "self.id" },
273   { cascade_copy => 0, cascade_delete => 0 },
274 );
275
276 =head2 bug_tags
277
278 Type: has_many
279
280 Related object: L<Debbugs::DB::Result::BugTag>
281
282 =cut
283
284 __PACKAGE__->has_many(
285   "bug_tags",
286   "Debbugs::DB::Result::BugTag",
287   { "foreign.bug_id" => "self.id" },
288   { cascade_copy => 0, cascade_delete => 0 },
289 );
290
291 =head2 bug_vers
292
293 Type: has_many
294
295 Related object: L<Debbugs::DB::Result::BugVer>
296
297 =cut
298
299 __PACKAGE__->has_many(
300   "bug_vers",
301   "Debbugs::DB::Result::BugVer",
302   { "foreign.bug_id" => "self.id" },
303   { cascade_copy => 0, cascade_delete => 0 },
304 );
305
306 =head2 bugs_merged_merged
307
308 Type: has_many
309
310 Related object: L<Debbugs::DB::Result::BugMerged>
311
312 =cut
313
314 __PACKAGE__->has_many(
315   "bugs_merged_merged",
316   "Debbugs::DB::Result::BugMerged",
317   { "foreign.merged" => "self.id" },
318   { cascade_copy => 0, cascade_delete => 0 },
319 );
320
321
322 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 21:09:18
323 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k+98VF0kOIp6OReqNNVXDg
324
325
326 # You can replace this text with custom code or comments, and it will be preserved on regeneration
327 1;