2 package Debbugs::DB::Result::UserTag;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::UserTag - User bug tags
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<user_tag>
36 __PACKAGE__->table("user_tag");
45 sequence: 'user_tag_id_seq'
62 User bug tag correspondent
66 __PACKAGE__->add_columns(
69 data_type => "integer",
70 is_auto_increment => 1,
72 sequence => "user_tag_id_seq",
75 { data_type => "text", is_nullable => 0 },
77 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
90 __PACKAGE__->set_primary_key("id");
92 =head1 UNIQUE CONSTRAINTS
94 =head2 C<user_tag_tag_correspondent>
100 =item * L</correspondent>
106 __PACKAGE__->add_unique_constraint("user_tag_tag_correspondent", ["tag", "correspondent"]);
114 Related object: L<Debbugs::DB::Result::BugUserTag>
118 __PACKAGE__->has_many(
120 "Debbugs::DB::Result::BugUserTag",
121 { "foreign.user_tag" => "self.id" },
122 { cascade_copy => 0, cascade_delete => 0 },
129 Related object: L<Debbugs::DB::Result::Correspondent>
133 __PACKAGE__->belongs_to(
135 "Debbugs::DB::Result::Correspondent",
136 { id => "correspondent" },
137 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
141 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZPmTBeTue62dG2NdQdPrQg
145 # You can replace this text with custom code or comments, and it will be preserved on regeneration