เพิ่ม entity PosDict,Position,PosMaster
This commit is contained in:
parent
1384b41b9b
commit
c45966eef7
3 changed files with 260 additions and 0 deletions
60
src/entities/PosDict.ts
Normal file
60
src/entities/PosDict.ts
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue