X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FUserTag.pm;fp=Debbugs%2FDB%2FResult%2FUserTag.pm;h=0000000000000000000000000000000000000000;hb=1e6633a3780f4fd53fc4303852e84d13cdad2dc6;hp=0883a2e5fe4a8f124b9634a1d76dc070ad4f2c55;hpb=466f7faff129a5699c7674f59900a92aa256175d;p=debbugs.git diff --git a/Debbugs/DB/Result/UserTag.pm b/Debbugs/DB/Result/UserTag.pm deleted file mode 100644 index 0883a2e..0000000 --- a/Debbugs/DB/Result/UserTag.pm +++ /dev/null @@ -1,151 +0,0 @@ -use utf8; -package Debbugs::DB::Result::UserTag; - -# Created by DBIx::Class::Schema::Loader -# DO NOT MODIFY THE FIRST PART OF THIS FILE - -=head1 NAME - -Debbugs::DB::Result::UserTag - User bug tags - -=cut - -use strict; -use warnings; - -use base 'DBIx::Class::Core'; - -=head1 COMPONENTS LOADED - -=over 4 - -=item * L - -=item * L - -=back - -=cut - -__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp"); - -=head1 TABLE: C - -=cut - -__PACKAGE__->table("user_tag"); - -=head1 ACCESSORS - -=head2 id - - data_type: 'integer' - is_auto_increment: 1 - is_nullable: 0 - sequence: 'user_tag_id_seq' - -User bug tag id - -=head2 tag - - data_type: 'text' - is_nullable: 0 - -User bug tag name - -=head2 correspondent - - data_type: 'integer' - is_foreign_key: 1 - is_nullable: 0 - -User bug tag correspondent - -=cut - -__PACKAGE__->add_columns( - "id", - { - data_type => "integer", - is_auto_increment => 1, - is_nullable => 0, - sequence => "user_tag_id_seq", - }, - "tag", - { data_type => "text", is_nullable => 0 }, - "correspondent", - { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, -); - -=head1 PRIMARY KEY - -=over 4 - -=item * L - -=back - -=cut - -__PACKAGE__->set_primary_key("id"); - -=head1 UNIQUE CONSTRAINTS - -=head2 C - -=over 4 - -=item * L - -=item * L - -=back - -=cut - -__PACKAGE__->add_unique_constraint("user_tag_tag_correspondent", ["tag", "correspondent"]); - -=head1 RELATIONS - -=head2 bug_user_tags - -Type: has_many - -Related object: L - -=cut - -__PACKAGE__->has_many( - "bug_user_tags", - "Debbugs::DB::Result::BugUserTag", - { "foreign.user_tag" => "self.id" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - -=head2 correspondent - -Type: belongs_to - -Related object: L - -=cut - -__PACKAGE__->belongs_to( - "correspondent", - "Debbugs::DB::Result::Correspondent", - { id => "correspondent" }, - { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, -); - - -# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZPmTBeTue62dG2NdQdPrQg - -sub sqlt_deploy_hook { - my ($self, $sqlt_table) = @_; - $sqlt_table->add_index(name => 'user_tag_correspondent', - fields => [qw(correspondent)], - ); -} - -1;