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 - Binary versions
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'
53 Binary package id (matches bin_pkg)
61 Source version (matchines src_ver)
69 Architecture id (matches arch)
73 data_type: 'debversion'
80 __PACKAGE__->add_columns(
83 data_type => "integer",
84 is_auto_increment => 1,
86 sequence => "bin_ver_id_seq",
89 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
91 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
93 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
95 { data_type => "debversion", is_nullable => 0 },
108 __PACKAGE__->set_primary_key("id");
110 =head1 UNIQUE CONSTRAINTS
112 =head2 C<bin_ver_bin_pkg_id_arch_idx>
126 __PACKAGE__->add_unique_constraint("bin_ver_bin_pkg_id_arch_idx", ["bin_pkg", "arch_id", "ver"]);
128 =head2 C<bin_ver_src_ver_id_arch_idx>
132 =item * L</src_ver_id>
140 __PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver_id", "arch_id"]);
148 Related object: L<Debbugs::DB::Result::Arch>
152 __PACKAGE__->belongs_to(
154 "Debbugs::DB::Result::Arch",
156 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
159 =head2 bin_associations
163 Related object: L<Debbugs::DB::Result::BinAssociation>
167 __PACKAGE__->has_many(
169 "Debbugs::DB::Result::BinAssociation",
170 { "foreign.bin" => "self.id" },
171 { cascade_copy => 0, cascade_delete => 0 },
178 Related object: L<Debbugs::DB::Result::BinPkg>
182 __PACKAGE__->belongs_to(
184 "Debbugs::DB::Result::BinPkg",
186 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
193 Related object: L<Debbugs::DB::Result::SrcVer>
197 __PACKAGE__->belongs_to(
199 "Debbugs::DB::Result::SrcVer",
200 { id => "src_ver_id" },
201 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
205 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20
206 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3K+5M1Rohq6AB4uLnVco+w
209 # You can replace this text with custom code or comments, and it will be preserved on regeneration