no message

This commit is contained in:
Kittapath 2024-02-07 12:43:49 +07:00
parent ca82158a20
commit 148fa2c81c
6 changed files with 65 additions and 30 deletions

View file

@ -40,7 +40,7 @@ export class PosDict extends EntityBase {
comment: "ตำแหน่งทางการบริหาร",
default: null,
})
posExecutiveId: string;
posExecutiveId: string | null;
@Column({
nullable: true,
@ -85,7 +85,7 @@ export class CreatePosDict {
posLevelId: string;
@Column()
posExecutiveId?: string | null;
posExecutiveId: string | null;
@Column()
posDictExecutiveField: string;

View file

@ -54,8 +54,8 @@ export class PosLevel extends EntityBase {
@OneToMany(() => PosDict, (posDict) => posDict.posLevel)
posDicts: PosDict[];
@OneToMany(() => Profile, (profile) => profile.posLevelsId)
posLevelId: Profile;
@OneToMany(() => Profile, (profile) => profile.posLevel)
posLevels: Profile[];
}
export class CreatePosLevel {
@ -73,4 +73,3 @@ export class CreatePosLevel {
}
export type UpdatePosLevel = Partial<CreatePosLevel> & { posLevelAuthority?: PosLevelAuthority };

View file

@ -32,8 +32,8 @@ export class PosType extends EntityBase {
@OneToMany(() => PosDict, (posDict) => posDict.posType)
posDicts: PosDict[];
@OneToMany(() => Profile, (profile) => profile.posTypesId)
posTypeId: Profile;
@OneToMany(() => Profile, (profile) => profile.posType)
posTypes: Profile[];
}
export class CreatePosType {

View file

@ -86,13 +86,13 @@ export class Profile extends EntityBase {
@OneToMany(() => PosMaster, (posMaster) => posMaster.next_holder)
next_holders: PosMaster[];
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevelId)
@ManyToOne(() => PosLevel, (posLevel) => posLevel.posLevels)
@JoinColumn({ name: "posLevelId" })
posLevelsId: PosLevel;
posLevel: PosLevel;
@ManyToOne(() => PosType, (posType) => posType.posTypeId)
@ManyToOne(() => PosType, (posType) => posType.posTypes)
@JoinColumn({ name: "posTypeId" })
posTypesId: PosType;
posType: PosType;
}
export class CreateProfile {