add field parantNode

This commit is contained in:
AdisakKanthawilang 2024-06-12 10:11:13 +07:00
parent e184714676
commit 194298ea5c
2 changed files with 17 additions and 2 deletions

View file

@ -67,6 +67,14 @@ export class AuthRoleAttr extends EntityBase {
})
authSysId: string;
@Column({
nullable: true,
length: 255,
comment: "Root",
default: null,
})
parentNode?: string | null;
@ManyToOne(() => AuthSys, (authSys) => authSys.authSys)
@JoinColumn({ name: "authSysId" })
authRoleAttrForSys: AuthSys;
@ -103,6 +111,9 @@ export class CreateAuthRoleAttr {
@Column("uuid")
authSysId: string;
@Column()
parentNode?: string | null;
}
export type UpdateAuthRoleAttr = Partial<CreateAuthRoleAttr>;