37 lines
682 B
TypeScript
37 lines
682 B
TypeScript
import { Entity, Column } from "typeorm";
|
|
import { EntityBase } from "../base/Base";
|
|
|
|
@Entity("ProfileChangeNames")
|
|
export class ProfileChangeNames extends EntityBase {
|
|
@Column({
|
|
nullable: true,
|
|
length: 40,
|
|
comment: "คำนำหน้า",
|
|
default: null,
|
|
})
|
|
prefix: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
length: 100,
|
|
comment: "ชื่อ",
|
|
default: null,
|
|
})
|
|
firstName: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
length: 100,
|
|
comment: "นามสกุล",
|
|
default: null,
|
|
})
|
|
lastName: string;
|
|
|
|
@Column({
|
|
nullable: true,
|
|
length: 100,
|
|
comment: "สถานะ",
|
|
default: null,
|
|
})
|
|
status: string;
|
|
}
|