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

@Entity('seeker_language')
export class SeekerLanguage {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  seeker_id: number;

  @Column()
  language_id: number;

  @Column({ type: 'enum', enum: ['Basic', 'Intermediate', 'Advanced'], nullable: true })
  english_level: 'Basic' | 'Intermediate' | 'Advanced' | null;

  @Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
  created_at: Date;

  @Column({
    type: 'timestamp',
    default: () => 'CURRENT_TIMESTAMP',
    onUpdate: 'CURRENT_TIMESTAMP',
  })
  updated_at: Date;
}
