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'
58 data_type: 'timestamp with time zone'
59 default_value: current_timestamp
61 original: {default_value => \"now()"}
71 __PACKAGE__->add_columns(
74 data_type => "integer",
75 is_auto_increment => 1,
77 sequence => "src_ver_id_seq",
80 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
82 { data_type => "text", is_nullable => 0 },
85 data_type => "timestamp with time zone",
86 default_value => \"current_timestamp",
88 original => { default_value => \"now()" },
91 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
104 __PACKAGE__->set_primary_key("id");
106 =head1 UNIQUE CONSTRAINTS
108 =head2 C<src_ver_src_pkg_id_ver>
112 =item * L</src_pkg_id>
120 __PACKAGE__->add_unique_constraint("src_ver_src_pkg_id_ver", ["src_pkg_id", "ver"]);
128 Related object: L<Debbugs::DB::Result::SrcVer>
132 __PACKAGE__->belongs_to(
134 "Debbugs::DB::Result::SrcVer",
135 { id => "based_on" },
139 on_delete => "CASCADE",
140 on_update => "CASCADE",
148 Related object: L<Debbugs::DB::Result::BinVer>
152 __PACKAGE__->has_many(
154 "Debbugs::DB::Result::BinVer",
155 { "foreign.src_ver_id" => "self.id" },
156 { cascade_copy => 0, cascade_delete => 0 },
163 Related object: L<Debbugs::DB::Result::BugVer>
167 __PACKAGE__->has_many(
169 "Debbugs::DB::Result::BugVer",
170 { "foreign.src_ver_id" => "self.id" },
171 { cascade_copy => 0, cascade_delete => 0 },
178 Related object: L<Debbugs::DB::Result::SrcPkg>
182 __PACKAGE__->belongs_to(
184 "Debbugs::DB::Result::SrcPkg",
185 { id => "src_pkg_id" },
186 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
193 Related object: L<Debbugs::DB::Result::SrcVer>
197 __PACKAGE__->has_many(
199 "Debbugs::DB::Result::SrcVer",
200 { "foreign.based_on" => "self.id" },
201 { cascade_copy => 0, cascade_delete => 0 },
205 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 17:10:22
206 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sYRJ4htIIKwvuvbUemk90A
209 # You can replace this text with custom code or comments, and it will be preserved on regeneration