import { Task } from '../../../repositories/tasks/entity/task.entity';
import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  ManyToOne,
  JoinColumn,
} from 'typeorm';

@Entity({ name: 'audio_option_items' })
export class AudioOptionItem {
  @PrimaryGeneratedColumn()
  id: number;
  @Column()
  audio_file_id: number;
  @Column()
  label: string;
  @Column()
  value: string;
  @ManyToOne(() => Task, (task) => task.audio_file_id)
  @JoinColumn({ name: 'audio_file_id' })
  task?: Task;
}
