2 package Debbugs::DB::Result::SrcVer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::SrcVer
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_ver>
34 __PACKAGE__->table("src_ver");
43 sequence: 'src_ver_id_seq'
53 data_type: 'debversion'
64 data_type: 'timestamp with time zone'
65 default_value: current_timestamp
67 original: {default_value => \"now()"}
77 __PACKAGE__->add_columns(
80 data_type => "integer",
81 is_auto_increment => 1,
83 sequence => "src_ver_id_seq",
86 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
88 { data_type => "debversion", is_nullable => 0 },
90 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
93 data_type => "timestamp with time zone",
94 default_value => \"current_timestamp",
96 original => { default_value => \"now()" },
99 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
112 __PACKAGE__->set_primary_key("id");
114 =head1 UNIQUE CONSTRAINTS
116 =head2 C<src_ver_src_pkg_id_ver>
120 =item * L</src_pkg_id>
128 __PACKAGE__->add_unique_constraint("src_ver_src_pkg_id_ver", ["src_pkg_id", "ver"]);
136 Related object: L<Debbugs::DB::Result::SrcVer>
140 __PACKAGE__->belongs_to(
142 "Debbugs::DB::Result::SrcVer",
143 { id => "based_on" },
147 on_delete => "CASCADE",
148 on_update => "CASCADE",
156 Related object: L<Debbugs::DB::Result::BinVer>
160 __PACKAGE__->has_many(
162 "Debbugs::DB::Result::BinVer",
163 { "foreign.src_ver_id" => "self.id" },
164 { cascade_copy => 0, cascade_delete => 0 },
171 Related object: L<Debbugs::DB::Result::BugVer>
175 __PACKAGE__->has_many(
177 "Debbugs::DB::Result::BugVer",
178 { "foreign.src_ver_id" => "self.id" },
179 { cascade_copy => 0, cascade_delete => 0 },
186 Related object: L<Debbugs::DB::Result::Maintainer>
190 __PACKAGE__->belongs_to(
192 "Debbugs::DB::Result::Maintainer",
193 { id => "maintainer_id" },
197 on_delete => "CASCADE",
198 on_update => "CASCADE",
202 =head2 src_associations
206 Related object: L<Debbugs::DB::Result::SrcAssociation>
210 __PACKAGE__->has_many(
212 "Debbugs::DB::Result::SrcAssociation",
213 { "foreign.source" => "self.id" },
214 { cascade_copy => 0, cascade_delete => 0 },
221 Related object: L<Debbugs::DB::Result::SrcPkg>
225 __PACKAGE__->belongs_to(
227 "Debbugs::DB::Result::SrcPkg",
228 { id => "src_pkg_id" },
229 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
236 Related object: L<Debbugs::DB::Result::SrcVer>
240 __PACKAGE__->has_many(
242 "Debbugs::DB::Result::SrcVer",
243 { "foreign.based_on" => "self.id" },
244 { cascade_copy => 0, cascade_delete => 0 },
248 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07
249 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1YjejvJjXTE1Q6OjD5x9zg
252 # You can replace this text with custom code or comments, and it will be preserved on regeneration