2 package Debbugs::DB::Result::SrcPkg;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::SrcPkg - Source packages
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<src_pkg>
36 __PACKAGE__->table("src_pkg");
45 sequence: 'src_pkg_id_seq'
68 Source package id which this source package is an alias of
72 data_type: 'timestamp with time zone'
73 default_value: current_timestamp
75 original: {default_value => \"now()"}
79 data_type: 'timestamp with time zone'
84 data_type: 'timestamp with time zone'
85 default_value: current_timestamp
87 original: {default_value => \"now()"}
97 __PACKAGE__->add_columns(
100 data_type => "integer",
101 is_auto_increment => 1,
103 sequence => "src_pkg_id_seq",
106 { data_type => "text", is_nullable => 0 },
108 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
110 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
113 data_type => "timestamp with time zone",
114 default_value => \"current_timestamp",
116 original => { default_value => \"now()" },
119 { data_type => "timestamp with time zone", is_nullable => 1 },
122 data_type => "timestamp with time zone",
123 default_value => \"current_timestamp",
125 original => { default_value => \"now()" },
128 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
141 __PACKAGE__->set_primary_key("id");
143 =head1 UNIQUE CONSTRAINTS
145 =head2 C<src_pkg_pkg_disabled>
157 __PACKAGE__->add_unique_constraint("src_pkg_pkg_disabled", ["pkg", "disabled"]);
165 Related object: L<Debbugs::DB::Result::SrcPkg>
169 __PACKAGE__->belongs_to(
171 "Debbugs::DB::Result::SrcPkg",
172 { id => "alias_of" },
176 on_delete => "CASCADE",
177 on_update => "CASCADE",
181 =head2 bug_affects_srcpackages
185 Related object: L<Debbugs::DB::Result::BugAffectsSrcpackage>
189 __PACKAGE__->has_many(
190 "bug_affects_srcpackages",
191 "Debbugs::DB::Result::BugAffectsSrcpackage",
192 { "foreign.src_pkg" => "self.id" },
193 { cascade_copy => 0, cascade_delete => 0 },
196 =head2 bug_srcpackages
200 Related object: L<Debbugs::DB::Result::BugSrcpackage>
204 __PACKAGE__->has_many(
206 "Debbugs::DB::Result::BugSrcpackage",
207 { "foreign.src_pkg" => "self.id" },
208 { cascade_copy => 0, cascade_delete => 0 },
215 Related object: L<Debbugs::DB::Result::BugVer>
219 __PACKAGE__->has_many(
221 "Debbugs::DB::Result::BugVer",
222 { "foreign.src_pkg" => "self.id" },
223 { cascade_copy => 0, cascade_delete => 0 },
230 Related object: L<Debbugs::DB::Result::SrcPkg>
234 __PACKAGE__->has_many(
236 "Debbugs::DB::Result::SrcPkg",
237 { "foreign.alias_of" => "self.id" },
238 { cascade_copy => 0, cascade_delete => 0 },
245 Related object: L<Debbugs::DB::Result::SrcVer>
249 __PACKAGE__->has_many(
251 "Debbugs::DB::Result::SrcVer",
252 { "foreign.src_pkg" => "self.id" },
253 { cascade_copy => 0, cascade_delete => 0 },
257 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
258 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qJt8Dn/9gBxJKauPUCFS7w
261 # You can replace this text with custom code or comments, and it will be preserved on regeneration