Entity Create Function

This commit is contained in:
AdisakKanthawilang 2024-01-31 16:15:55 +07:00
parent d17e31fbad
commit c81dacadc6
3 changed files with 36 additions and 0 deletions

View file

@ -25,3 +25,13 @@ export class PosExecutive extends EntityBase {
@OneToMany(() => PosDict, (posDict) => posDict.posExecutive)
posDicts: PosDict[];
}
export class CreatePosExecutive {
@Column()
posExecutiveName: string;
@Column()
posExecutivePriority: number;
}
export type UpdatePosExecutive = Partial<CreatePosExecutive>;

View file

@ -51,3 +51,19 @@ export class PosLevel extends EntityBase {
@OneToMany(() => PosDict, (posDict) => posDict.posLevel)
posDicts: PosDict[];
}
export class CreatePosLevel {
@Column()
posLevelName: string;
@Column()
posLevelRank: number;
@Column()
posLevelAuthority: string;
@Column("uuid")
posTypeId: string;
}
export type UpdatePosLevel = Partial<CreatePosLevel>;

View file

@ -30,3 +30,13 @@ export class PosType extends EntityBase {
@OneToMany(() => PosDict, (posDict) => posDict.posType)
posDicts: PosDict[];
}
export class CreatePosType {
@Column()
posTypeName: string;
@Column()
posTypeRank: number;
}
export type UpdatePosType = Partial<CreatePosType>;