2 package Debbugs::DB::Result::Suite;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::Suite - Debian Release Suite (stable, testing, etc.)
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<suite>
36 __PACKAGE__->table("suite");
45 sequence: 'suite_id_seq'
54 Suite codename (sid, squeeze, etc.)
61 Suite name (testing, stable, etc.)
68 Suite version; NULL if there is no appropriate version
76 TRUE if the suite is still accepting uploads
80 __PACKAGE__->add_columns(
83 data_type => "integer",
84 is_auto_increment => 1,
86 sequence => "suite_id_seq",
89 { data_type => "text", is_nullable => 0 },
91 { data_type => "text", is_nullable => 1 },
93 { data_type => "text", is_nullable => 1 },
95 { data_type => "boolean", default_value => \"true", is_nullable => 1 },
108 __PACKAGE__->set_primary_key("id");
110 =head1 UNIQUE CONSTRAINTS
112 =head2 C<suite_idx_codename>
122 __PACKAGE__->add_unique_constraint("suite_idx_codename", ["codename"]);
124 =head2 C<suite_idx_version>
134 __PACKAGE__->add_unique_constraint("suite_idx_version", ["version"]);
136 =head2 C<suite_suite_name_key>
140 =item * L</suite_name>
146 __PACKAGE__->add_unique_constraint("suite_suite_name_key", ["suite_name"]);
150 =head2 bin_associations
154 Related object: L<Debbugs::DB::Result::BinAssociation>
158 __PACKAGE__->has_many(
160 "Debbugs::DB::Result::BinAssociation",
161 { "foreign.suite" => "self.id" },
162 { cascade_copy => 0, cascade_delete => 0 },
165 =head2 bug_status_caches
169 Related object: L<Debbugs::DB::Result::BugStatusCache>
173 __PACKAGE__->has_many(
175 "Debbugs::DB::Result::BugStatusCache",
176 { "foreign.suite" => "self.id" },
177 { cascade_copy => 0, cascade_delete => 0 },
180 =head2 src_associations
184 Related object: L<Debbugs::DB::Result::SrcAssociation>
188 __PACKAGE__->has_many(
190 "Debbugs::DB::Result::SrcAssociation",
191 { "foreign.suite" => "self.id" },
192 { cascade_copy => 0, cascade_delete => 0 },
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
200 # You can replace this text with custom code or comments, and it will be preserved on regeneration