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>
116 =item * L</bin_pkg_id>
126 __PACKAGE__->add_unique_constraint(
127 "bin_ver_bin_pkg_id_arch_idx",
128 ["bin_pkg_id", "arch_id", "ver"],
131 =head2 C<bin_ver_src_ver_id_arch_idx>
135 =item * L</src_ver_id>
143 __PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver_id", "arch_id"]);
151 Related object: L<Debbugs::DB::Result::Arch>
155 __PACKAGE__->belongs_to(
157 "Debbugs::DB::Result::Arch",
159 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
162 =head2 bin_associations
166 Related object: L<Debbugs::DB::Result::BinAssociation>
170 __PACKAGE__->has_many(
172 "Debbugs::DB::Result::BinAssociation",
173 { "foreign.bin" => "self.id" },
174 { cascade_copy => 0, cascade_delete => 0 },
181 Related object: L<Debbugs::DB::Result::BinPkg>
185 __PACKAGE__->belongs_to(
187 "Debbugs::DB::Result::BinPkg",
188 { id => "bin_pkg_id" },
189 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
196 Related object: L<Debbugs::DB::Result::SrcVer>
200 __PACKAGE__->belongs_to(
202 "Debbugs::DB::Result::SrcVer",
203 { id => "src_ver_id" },
204 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
208 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
209 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9iEDj8DfMh5jdc03zs4UmQ
212 # You can replace this text with custom code or comments, and it will be preserved on regeneration