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>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<bug_binpackage>
36 __PACKAGE__->table("bug_binpackage");
45 sequence: 'bug_binpackage_id_seq'
61 Binary package id (matches bin_pkg)
65 __PACKAGE__->add_columns(
68 data_type => "integer",
69 is_auto_increment => 1,
71 sequence => "bug_binpackage_id_seq",
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
89 __PACKAGE__->set_primary_key("id");
91 =head1 UNIQUE CONSTRAINTS
93 =head2 C<bug_binpackage_id_pkg>
105 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg", ["bug", "bin_pkg"]);
113 Related object: L<Debbugs::DB::Result::BinPkg>
117 __PACKAGE__->belongs_to(
119 "Debbugs::DB::Result::BinPkg",
121 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
128 Related object: L<Debbugs::DB::Result::Bug>
132 __PACKAGE__->belongs_to(
134 "Debbugs::DB::Result::Bug",
136 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
140 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
141 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FZAi6kX8ICe/ZJI0JEqZLg
144 # You can replace this text with custom code or comments, and it will be preserved on regeneration