hrms-api-org/src/entities/mis/ProfileHonors.ts
2025-08-05 22:24:45 +07:00

60 lines
1.2 KiB
TypeScript

import { Entity, Column } from "typeorm";
import { EntityBase } from "../base/Base";
@Entity("ProfileHonors")
export class ProfileHonors extends EntityBase {
@Column({
nullable: true,
length: 2000,
comment: "รายละเอียด",
default: null,
})
detail: string;
@Column({
nullable: true,
type: "datetime",
comment: "วันที่ได้รับ",
default: null,
})
issueDate: Date;
@Column({
nullable: true,
length: 200,
comment: "หน่วยงานที่ออก ",
default: null,
})
issuer: string;
// @Column({
// nullable: true,
// length: 200,
// comment: "ประเภท",
// default: null,
// })
// type: string;
@Column({
nullable: true,
type: "datetime",
comment: "เอกสารอ้างอิง (ลงวันที่)",
default: null,
})
refCommandDate: Date;
@Column({
nullable: true,
comment: "เอกสารอ้างอิง (เลขที่คำสั่ง)",
type: "text",
default: null,
})
refCommandNo: string;
@Column({
nullable: true,
comment: "ประเภทช่วงเวลา",
default: null,
})
isDate: boolean;
}