hrms-api-org/src/entities/SubDistrictMaster.ts
2025-12-07 13:51:01 +07:00

31 lines
618 B
TypeScript

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;
}