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>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<bin_ver>
36 __PACKAGE__->table("bin_ver");
45 sequence: 'bin_ver_id_seq'
55 Binary package id (matches bin_pkg)
63 Source version (matchines src_ver)
71 Architecture id (matches arch)
75 data_type: 'debversion'
82 __PACKAGE__->add_columns(
85 data_type => "integer",
86 is_auto_increment => 1,
88 sequence => "bin_ver_id_seq",
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 => "integer", is_foreign_key => 1, is_nullable => 0 },
97 { data_type => "debversion", is_nullable => 0 },
110 __PACKAGE__->set_primary_key("id");
112 =head1 UNIQUE CONSTRAINTS
114 =head2 C<bin_ver_bin_pkg_id_arch_idx>
128 __PACKAGE__->add_unique_constraint("bin_ver_bin_pkg_id_arch_idx", ["bin_pkg", "arch", "ver"]);
130 =head2 C<bin_ver_src_ver_id_arch_idx>
142 __PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver", "arch"]);
150 Related object: L<Debbugs::DB::Result::Arch>
154 __PACKAGE__->belongs_to(
156 "Debbugs::DB::Result::Arch",
158 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
161 =head2 bin_associations
165 Related object: L<Debbugs::DB::Result::BinAssociation>
169 __PACKAGE__->has_many(
171 "Debbugs::DB::Result::BinAssociation",
172 { "foreign.bin" => "self.id" },
173 { cascade_copy => 0, cascade_delete => 0 },
180 Related object: L<Debbugs::DB::Result::BinPkg>
184 __PACKAGE__->belongs_to(
186 "Debbugs::DB::Result::BinPkg",
188 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
195 Related object: L<Debbugs::DB::Result::SrcVer>
199 __PACKAGE__->belongs_to(
201 "Debbugs::DB::Result::SrcVer",
203 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
207 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
208 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Jie49PiJahtnqmfkKQYtcw
211 # You can replace this text with custom code or comments, and it will be preserved on regeneration