2 package Debbugs::DB::Result::BugBinpackage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugBinpackage - Bug <-> binary package mapping
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<bug_binpackage>
34 __PACKAGE__->table("bug_binpackage");
52 Binary package id (matches bin_pkg)
56 __PACKAGE__->add_columns(
58 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63 =head1 UNIQUE CONSTRAINTS
65 =head2 C<bug_binpackage_id_pkg_id>
71 =item * L</bin_pkg_id>
77 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg_id", ["bug_id", "bin_pkg_id"]);
85 Related object: L<Debbugs::DB::Result::BinPkg>
89 __PACKAGE__->belongs_to(
91 "Debbugs::DB::Result::BinPkg",
92 { id => "bin_pkg_id" },
93 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100 Related object: L<Debbugs::DB::Result::Bug>
104 __PACKAGE__->belongs_to(
106 "Debbugs::DB::Result::Bug",
108 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
112 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2QtRdBjEVaUYmfqY7rWA6g
116 # You can replace this text with custom code or comments, and it will be preserved on regeneration