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
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'
64 __PACKAGE__->add_columns(
67 data_type => "integer",
68 is_auto_increment => 1,
70 sequence => "src_pkg_id_seq",
73 { data_type => "text", is_nullable => 0 },
75 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
77 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
90 __PACKAGE__->set_primary_key("id");
92 =head1 UNIQUE CONSTRAINTS
94 =head2 C<src_pkg_pkg_key>
104 __PACKAGE__->add_unique_constraint("src_pkg_pkg_key", ["pkg"]);
112 Related object: L<Debbugs::DB::Result::SrcPkg>
116 __PACKAGE__->belongs_to(
118 "Debbugs::DB::Result::SrcPkg",
119 { id => "alias_of" },
123 on_delete => "CASCADE",
124 on_update => "CASCADE",
128 =head2 bug_srcpackages
132 Related object: L<Debbugs::DB::Result::BugSrcpackage>
136 __PACKAGE__->has_many(
138 "Debbugs::DB::Result::BugSrcpackage",
139 { "foreign.src_pkg_id" => "self.id" },
140 { cascade_copy => 0, cascade_delete => 0 },
147 Related object: L<Debbugs::DB::Result::BugVer>
151 __PACKAGE__->has_many(
153 "Debbugs::DB::Result::BugVer",
154 { "foreign.src_pkg_id" => "self.id" },
155 { cascade_copy => 0, cascade_delete => 0 },
162 Related object: L<Debbugs::DB::Result::SrcPkg>
166 __PACKAGE__->has_many(
168 "Debbugs::DB::Result::SrcPkg",
169 { "foreign.alias_of" => "self.id" },
170 { cascade_copy => 0, cascade_delete => 0 },
177 Related object: L<Debbugs::DB::Result::SrcVer>
181 __PACKAGE__->has_many(
183 "Debbugs::DB::Result::SrcVer",
184 { "foreign.src_pkg_id" => "self.id" },
185 { cascade_copy => 0, cascade_delete => 0 },
189 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-23 17:41:43
190 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:s3tqzD1crqO0a57NzVkWDg
193 # You can replace this text with custom code or comments, and it will be preserved on regeneration