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

@Entity('announcement_user_targets')
@Index('idx_ann_user_targets_ann', ['announcementId'])
@Index('idx_ann_user_targets_user', ['userId'])
export class AnnouncementUserTarget {
  @PrimaryGeneratedColumn('uuid')
  id: string;

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

  @Column({ name: 'user_id', type: 'uuid' })
  userId: string;
}
