2 package Debbugs::DB::Result::BugAffectsSrcpackage;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugAffectsSrcpackage - Bug <-> source 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_affects_srcpackage>
36 __PACKAGE__->table("bug_affects_srcpackage");
54 Source package id (matches src_pkg)
58 __PACKAGE__->add_columns(
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
65 =head1 UNIQUE CONSTRAINTS
67 =head2 C<bug_affects_srcpackage_id_pkg>
79 __PACKAGE__->add_unique_constraint("bug_affects_srcpackage_id_pkg", ["bug", "src_pkg"]);
87 Related object: L<Debbugs::DB::Result::Bug>
91 __PACKAGE__->belongs_to(
93 "Debbugs::DB::Result::Bug",
95 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
102 Related object: L<Debbugs::DB::Result::SrcPkg>
106 __PACKAGE__->belongs_to(
108 "Debbugs::DB::Result::SrcPkg",
110 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
114 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1TkTacVNBhXOnzV1ttCF2A
118 # You can replace this text with custom code or comments, and it will be preserved on regeneration