hrms-api-org/src/entities/PosDict.ts

61 lines
1.4 KiB
TypeScript
Raw Normal View History

import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
@Entity("posDict")
export class PosDict extends EntityBase {
@Column({
nullable: true,
comment: "ชื่อตำแหน่งในสายงาน (ชื่อตำแหน่ง)",
length: 255,
default: "string",
})
posDictName: string;
@Column({
nullable: true,
comment: "สายงาน",
length: 255,
default: "string",
})
posDictField: string;
@Column({
length: 40,
comment: "ตำแหน่งประเภท",
default: "00000000-0000-0000-0000-000000000000",
})
posTypeId: string;
@Column({
length: 40,
comment: "ระดับตำแหน่ง",
default: "00000000-0000-0000-0000-000000000000",
})
posLevelId: string;
@Column({
nullable: true,
length: 40,
comment: "ตำแหน่งทางการบริหาร",
default: "00000000-0000-0000-0000-000000000000",
})
posExecutiveId: string;
@Column({
nullable: true,
length: 255,
comment: "ด้านทางการบริหาร",
default: "string",
})
posDictExecutiveField: string;
@Column({
nullable: true,
length: 255,
comment: "ด้าน/สาขา",
default: "string",
})
posDictArea: string;
}