no message
This commit is contained in:
parent
ca82158a20
commit
148fa2c81c
6 changed files with 65 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue