2 package Debbugs::DB::Result::BugUserTag;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BugUserTag - Bug <-> user tag 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_user_tag>
36 __PACKAGE__->table("bug_user_tag");
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_user_tag_bug_tag>
77 __PACKAGE__->add_unique_constraint("bug_user_tag_bug_tag", ["bug", "user_tag"]);
85 Related object: L<Debbugs::DB::Result::Bug>
89 __PACKAGE__->belongs_to(
91 "Debbugs::DB::Result::Bug",
93 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
100 Related object: L<Debbugs::DB::Result::UserTag>
104 __PACKAGE__->belongs_to(
106 "Debbugs::DB::Result::UserTag",
107 { id => "user_tag" },
108 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
112 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jZngUCQ1eBBcfXd/jWCKGA
116 sub sqlt_deploy_hook {
117 my ($self, $sqlt_table) = @_;
118 $sqlt_table->add_index(name => 'bug_user_tag_tag',
119 fields => [qw(user_tag)],