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

@Entity("subdistrict_master")
export class SubDistrictMaster {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  zip_code: number;

  @Column({ length: 255 })
  name_th: string;

  @Column({ length: 255 })
  name_en: string;

  @Column()
  district_id: number;

  @Column({ type: "float", nullable: true })
  lat: number | null;

  @Column({ type: "float", nullable: true })
  long: number | null;

  @Column({ type: "timestamp", nullable: true })
  created_at: string;

  @Column({ type: "timestamp", nullable: true })
  updated_at: string;
}
