เพิ่ม entity [PosType ,PosExecutive ,PosLevel]
This commit is contained in:
parent
33967dcd7c
commit
c72dbe5fb0
3 changed files with 89 additions and 0 deletions
19
src/entities/PosExecutive.ts
Normal file
19
src/entities/PosExecutive.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { Entity, Column, ManyToOne, JoinColumn, OneToOne, OneToMany } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("posExecutive")
|
||||
export class PosExecutive extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อตำแหน่งทางการบริหาร",
|
||||
length: 255,
|
||||
default: "string",
|
||||
})
|
||||
posExecutiveName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับความสำคัญ",
|
||||
})
|
||||
posExecutivePriority: number;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue