45 lines
978 B
TypeScript
45 lines
978 B
TypeScript
import { Entity, Column } from "typeorm";
|
|
import { EntityBase } from "./base/Base";
|
|
|
|
@Entity("ProfileCertificates")
|
|
export class ProfileCertificates extends EntityBase {
|
|
@Column({
|
|
nullable: true,
|
|
type: "datetime",
|
|
comment: "วันที่หมดอายุ",
|
|
default: null,
|
|
})
|
|
expireDate: Date;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
type: "datetime",
|
|
comment: "วันที่ออกใบอนุญาต",
|
|
default: null,
|
|
})
|
|
issueDate: Date;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "เลขที่ใบอนุญาต",
|
|
length: 20,
|
|
default: null,
|
|
})
|
|
certificateNo: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "ชื่อใบอนุญาต",
|
|
length: 100,
|
|
default: null,
|
|
})
|
|
certificateType: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
comment: "หน่วยงานผู้ออกใบอนุญาต",
|
|
length: 200,
|
|
default: null,
|
|
})
|
|
issuer: string;
|
|
}
|