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

22 lines
404 B
TypeScript

import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";
@Entity("district_master")
export class DistrictMaster {
@PrimaryGeneratedColumn()
id: number;
@Column({ length: 255 })
name_th: string;
@Column({ length: 255 })
name_en: string;
@Column()
province_id: number;
@Column({ nullable: true })
created_at: string;
@Column({ nullable: true })
updated_at: string;
}