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

@Entity('seeker_preferred_roles')
export class SeekerPreferredRoles {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id' })
  id: number;

  @Index()
  @Column('int', { name: 'seeker_preference_id', nullable: false })
  seekerPreferenceId: number;

  @Index()
  @Column('int', { name: 'role_id', nullable: false })
  roleId: number;

  @CreateDateColumn({ name: 'created', type: 'datetime', nullable: true })
  created: Date;

  @UpdateDateColumn({ name: 'updated', type: 'datetime', nullable: true })
  updated: Date;
}
