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>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
30 =head1 TABLE: C<src_pkg>
34 __PACKAGE__->table("src_pkg");
43 sequence: 'src_pkg_id_seq'
66 Source package id which this source package is an alias of
70 __PACKAGE__->add_columns(
73 data_type => "integer",
74 is_auto_increment => 1,
76 sequence => "src_pkg_id_seq",
79 { data_type => "text", is_nullable => 0 },
81 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
96 __PACKAGE__->set_primary_key("id");
98 =head1 UNIQUE CONSTRAINTS
100 =head2 C<src_pkg_pkg_key>
110 __PACKAGE__->add_unique_constraint("src_pkg_pkg_key", ["pkg"]);
118 Related object: L<Debbugs::DB::Result::SrcPkg>
122 __PACKAGE__->belongs_to(
124 "Debbugs::DB::Result::SrcPkg",
125 { id => "alias_of" },
129 on_delete => "CASCADE",
130 on_update => "CASCADE",
134 =head2 bug_srcpackages
138 Related object: L<Debbugs::DB::Result::BugSrcpackage>
142 __PACKAGE__->has_many(
144 "Debbugs::DB::Result::BugSrcpackage",
145 { "foreign.src_pkg_id" => "self.id" },
146 { cascade_copy => 0, cascade_delete => 0 },
153 Related object: L<Debbugs::DB::Result::BugVer>
157 __PACKAGE__->has_many(
159 "Debbugs::DB::Result::BugVer",
160 { "foreign.src_pkg_id" => "self.id" },
161 { cascade_copy => 0, cascade_delete => 0 },
168 Related object: L<Debbugs::DB::Result::SrcPkg>
172 __PACKAGE__->has_many(
174 "Debbugs::DB::Result::SrcPkg",
175 { "foreign.alias_of" => "self.id" },
176 { cascade_copy => 0, cascade_delete => 0 },
183 Related object: L<Debbugs::DB::Result::SrcVer>
187 __PACKAGE__->has_many(
189 "Debbugs::DB::Result::SrcVer",
190 { "foreign.src_pkg_id" => "self.id" },
191 { cascade_copy => 0, cascade_delete => 0 },
195 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-12-03 15:57:07
196 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zKfk7AmIYswUAYKBbBGQaQ
199 # You can replace this text with custom code or comments, and it will be preserved on regeneration