import { Entity, Column, PrimaryGeneratedColumn, Index } from 'typeorm';

@Entity('announcement_tag_targets')
@Index('idx_ann_tag_targets_ann', ['announcementId'])
@Index('idx_ann_tag_targets_tag', ['tag'])
export class AnnouncementTagTarget {
  @PrimaryGeneratedColumn('uuid')
  id: string;

  @Column({ name: 'announcement_id', type: 'uuid' })
  announcementId: string;

  @Column({ type: 'varchar', length: 100 })
  tag: string;
}
