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 data_type: 'timestamp with time zone'
71 default_value: current_timestamp
73 original: {default_value => \"now()"}
77 data_type: 'timestamp with time zone'
82 data_type: 'timestamp with time zone'
83 default_value: current_timestamp
85 original: {default_value => \"now()"}
95 __PACKAGE__->add_columns(
98 data_type => "integer",
99 is_auto_increment => 1,
101 sequence => "src_pkg_id_seq",
104 { data_type => "text", is_nullable => 0 },
106 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
108 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
111 data_type => "timestamp with time zone",
112 default_value => \"current_timestamp",
114 original => { default_value => \"now()" },
117 { data_type => "timestamp with time zone", is_nullable => 1 },
120 data_type => "timestamp with time zone",
121 default_value => \"current_timestamp",
123 original => { default_value => \"now()" },
126 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
139 __PACKAGE__->set_primary_key("id");
141 =head1 UNIQUE CONSTRAINTS
143 =head2 C<src_pkg_pkg_disabled>
155 __PACKAGE__->add_unique_constraint("src_pkg_pkg_disabled", ["pkg", "disabled"]);
163 Related object: L<Debbugs::DB::Result::SrcPkg>
167 __PACKAGE__->belongs_to(
169 "Debbugs::DB::Result::SrcPkg",
170 { id => "alias_of" },
174 on_delete => "CASCADE",
175 on_update => "CASCADE",
179 =head2 bug_srcpackages
183 Related object: L<Debbugs::DB::Result::BugSrcpackage>
187 __PACKAGE__->has_many(
189 "Debbugs::DB::Result::BugSrcpackage",
190 { "foreign.src_pkg" => "self.id" },
191 { cascade_copy => 0, cascade_delete => 0 },
198 Related object: L<Debbugs::DB::Result::BugVer>
202 __PACKAGE__->has_many(
204 "Debbugs::DB::Result::BugVer",
205 { "foreign.src_pkg" => "self.id" },
206 { cascade_copy => 0, cascade_delete => 0 },
213 Related object: L<Debbugs::DB::Result::SrcPkg>
217 __PACKAGE__->has_many(
219 "Debbugs::DB::Result::SrcPkg",
220 { "foreign.alias_of" => "self.id" },
221 { cascade_copy => 0, cascade_delete => 0 },
228 Related object: L<Debbugs::DB::Result::SrcVer>
232 __PACKAGE__->has_many(
234 "Debbugs::DB::Result::SrcVer",
235 { "foreign.src_pkg" => "self.id" },
236 { cascade_copy => 0, cascade_delete => 0 },
240 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-13 09:19:59
241 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XKxXxExb3rnZZyuA+70mww
244 # You can replace this text with custom code or comments, and it will be preserved on regeneration