เพิ่ม entity [PosType ,PosExecutive ,PosLevel]

This commit is contained in:
AdisakKanthawilang 2024-01-30 10:59:49 +07:00
parent 33967dcd7c
commit c72dbe5fb0
3 changed files with 89 additions and 0 deletions

View 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;
}