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");
43 sequence: 'bug_binpackage_id_seq'
59 Binary package id (matches bin_pkg)
63 __PACKAGE__->add_columns(
66 data_type => "integer",
67 is_auto_increment => 1,
69 sequence => "bug_binpackage_id_seq",
72 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
87 __PACKAGE__->set_primary_key("id");
89 =head1 UNIQUE CONSTRAINTS
91 =head2 C<bug_binpackage_id_pkg_id>
103 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg_id", ["bug", "bin_pkg"]);
111 Related object: L<Debbugs::DB::Result::BinPkg>
115 __PACKAGE__->belongs_to(
117 "Debbugs::DB::Result::BinPkg",
119 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
126 Related object: L<Debbugs::DB::Result::Bug>
130 __PACKAGE__->belongs_to(
132 "Debbugs::DB::Result::Bug",
134 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
138 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cQ0MmOnrqlxvxubcvh4PBg
142 # You can replace this text with custom code or comments, and it will be preserved on regeneration