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

@Entity('saved_candidates')
export class SavedCandidate {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ nullable: true })
  recruiter_id: number;

  @Column({ nullable: true })
  associate_id: number;

  @Column()
  candidate_id: number;

  @Column({ type: 'text', nullable: true })
  notes: string;

  @Column({ type: 'varchar', length: 100, nullable: true })
  status: string;

  @Column({ type: 'boolean', default: false })
  is_deleted: boolean;

  @CreateDateColumn({ name: 'created_at' })
  created_at: Date;

  @UpdateDateColumn({ name: 'updated_at' })
  updated_at: Date;
}
