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

@Entity('job_saved')
export class JobSaved {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  seeker_id: number;

  @Column()
  job_post_id: number;

  @CreateDateColumn()
  saved_at: Date;

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

  @UpdateDateColumn()
  updated_at: Date;
}
