2 package Debbugs::DB::Result::BinVer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BinVer
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<bin_ver>
34 __PACKAGE__->table("bin_ver");
43 sequence: 'bin_ver_id_seq'
65 data_type: 'debversion'
70 __PACKAGE__->add_columns(
73 data_type => "integer",
74 is_auto_increment => 1,
76 sequence => "bin_ver_id_seq",
79 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
81 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85 { data_type => "debversion", is_nullable => 0 },
98 __PACKAGE__->set_primary_key("id");
100 =head1 UNIQUE CONSTRAINTS
102 =head2 C<bin_ver_bin_pkg_id_arch_idx>
106 =item * L</bin_pkg_id>
116 __PACKAGE__->add_unique_constraint(
117 "bin_ver_bin_pkg_id_arch_idx",
118 ["bin_pkg_id", "arch_id", "ver"],
121 =head2 C<bin_ver_src_ver_id_arch_idx>
125 =item * L</src_ver_id>
133 __PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver_id", "arch_id"]);
141 Related object: L<Debbugs::DB::Result::Arch>
145 __PACKAGE__->belongs_to(
147 "Debbugs::DB::Result::Arch",
149 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
152 =head2 bin_associations
156 Related object: L<Debbugs::DB::Result::BinAssociation>
160 __PACKAGE__->has_many(
162 "Debbugs::DB::Result::BinAssociation",
163 { "foreign.bin" => "self.id" },
164 { cascade_copy => 0, cascade_delete => 0 },
171 Related object: L<Debbugs::DB::Result::BinPkg>
175 __PACKAGE__->belongs_to(
177 "Debbugs::DB::Result::BinPkg",
178 { id => "bin_pkg_id" },
179 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
186 Related object: L<Debbugs::DB::Result::SrcVer>
190 __PACKAGE__->belongs_to(
192 "Debbugs::DB::Result::SrcVer",
193 { id => "src_ver_id" },
194 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
198 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07
199 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ID7wx8HJaYZgpdhHqCq8GQ
202 # You can replace this text with custom code or comments, and it will be preserved on regeneration