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

@Entity('seeker_address')
export class SeekerAddress {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ type: 'text', nullable: true })
  permanent_address: string | null;

  @Column({ type: 'int', nullable: true })
  permanent_country_id: number | null;

  @Column({ type: 'int', nullable: true })
  permanent_state_id: number | null;

  @Column({ type: 'int', nullable: true })
  permanent_city_id: number | null;

  @Column({ type: 'varchar', length: 20, nullable: true })
  permanent_pincode: string | null;

  @Column({ type: 'int', nullable: true })
  permanent_area_id: number | null;

  @Column({ type: 'text', nullable: true })
  communication_address: string | null;

  @Column({ type: 'int', nullable: true })
  communication_country_id: number | null;

  @Column({ type: 'int', nullable: true })
  communication_state_id: number | null;

  @Column({ type: 'int', nullable: true })
  communication_city_id: number | null;

  @Column({ type: 'varchar', length: 20, nullable: true })
  communication_pincode: string | null;

  @Column({ type: 'int', nullable: true })
  communication_area_id: number | null;

  @Column({ type: 'tinyint', width: 1, nullable: true, default: () => '0' })
  same_as_permanent: number | null;

  @Column({ type: 'int', nullable: true })
  seeker_profile_id: number | null;
}
