]> git.donarmstrong.com Git - debbugs.git/blob - lib/Debbugs/DB/Result/Suite.pm
move Debbugs to lib
[debbugs.git] / lib / Debbugs / DB / Result / Suite.pm
1 use utf8;
2 package Debbugs::DB::Result::Suite;
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::Suite - Debian Release Suite (stable, testing, etc.)
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 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31
32 =head1 TABLE: C<suite>
33
34 =cut
35
36 __PACKAGE__->table("suite");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'suite_id_seq'
46
47 Suite id
48
49 =head2 codename
50
51   data_type: 'text'
52   is_nullable: 0
53
54 Suite codename (sid, squeeze, etc.)
55
56 =head2 suite_name
57
58   data_type: 'text'
59   is_nullable: 1
60
61 Suite name (testing, stable, etc.)
62
63 =head2 version
64
65   data_type: 'text'
66   is_nullable: 1
67
68 Suite version; NULL if there is no appropriate version
69
70 =head2 active
71
72   data_type: 'boolean'
73   default_value: true
74   is_nullable: 1
75
76 TRUE if the suite is still accepting uploads
77
78 =cut
79
80 __PACKAGE__->add_columns(
81   "id",
82   {
83     data_type         => "integer",
84     is_auto_increment => 1,
85     is_nullable       => 0,
86     sequence          => "suite_id_seq",
87   },
88   "codename",
89   { data_type => "text", is_nullable => 0 },
90   "suite_name",
91   { data_type => "text", is_nullable => 1 },
92   "version",
93   { data_type => "text", is_nullable => 1 },
94   "active",
95   { data_type => "boolean", default_value => \"true", is_nullable => 1 },
96 );
97
98 =head1 PRIMARY KEY
99
100 =over 4
101
102 =item * L</id>
103
104 =back
105
106 =cut
107
108 __PACKAGE__->set_primary_key("id");
109
110 =head1 UNIQUE CONSTRAINTS
111
112 =head2 C<suite_idx_codename>
113
114 =over 4
115
116 =item * L</codename>
117
118 =back
119
120 =cut
121
122 __PACKAGE__->add_unique_constraint("suite_idx_codename", ["codename"]);
123
124 =head2 C<suite_idx_version>
125
126 =over 4
127
128 =item * L</version>
129
130 =back
131
132 =cut
133
134 __PACKAGE__->add_unique_constraint("suite_idx_version", ["version"]);
135
136 =head2 C<suite_suite_name_key>
137
138 =over 4
139
140 =item * L</suite_name>
141
142 =back
143
144 =cut
145
146 __PACKAGE__->add_unique_constraint("suite_suite_name_key", ["suite_name"]);
147
148 =head1 RELATIONS
149
150 =head2 bin_associations
151
152 Type: has_many
153
154 Related object: L<Debbugs::DB::Result::BinAssociation>
155
156 =cut
157
158 __PACKAGE__->has_many(
159   "bin_associations",
160   "Debbugs::DB::Result::BinAssociation",
161   { "foreign.suite" => "self.id" },
162   { cascade_copy => 0, cascade_delete => 0 },
163 );
164
165 =head2 bug_status_caches
166
167 Type: has_many
168
169 Related object: L<Debbugs::DB::Result::BugStatusCache>
170
171 =cut
172
173 __PACKAGE__->has_many(
174   "bug_status_caches",
175   "Debbugs::DB::Result::BugStatusCache",
176   { "foreign.suite" => "self.id" },
177   { cascade_copy => 0, cascade_delete => 0 },
178 );
179
180 =head2 src_associations
181
182 Type: has_many
183
184 Related object: L<Debbugs::DB::Result::SrcAssociation>
185
186 =cut
187
188 __PACKAGE__->has_many(
189   "src_associations",
190   "Debbugs::DB::Result::SrcAssociation",
191   { "foreign.suite" => "self.id" },
192   { cascade_copy => 0, cascade_delete => 0 },
193 );
194
195
196 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-11-24 08:52:49
197 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nXoQCYZhM9cFgC1x+RY9rA
198
199
200 # You can replace this text with custom code or comments, and it will be preserved on regeneration
201 1;