From 7052e451758d394218f8a84e369f76452468f68c Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Mon, 6 Jan 2025 12:09:48 +0700 Subject: [PATCH] add applicaiton roles --- src/entity/users_roles.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/entity/users_roles.ts b/src/entity/users_roles.ts index 83aec9c..940fd76 100644 --- a/src/entity/users_roles.ts +++ b/src/entity/users_roles.ts @@ -8,6 +8,10 @@ export class UserRole { @PrimaryGeneratedColumn('uuid') id: string; + @ManyToOne(() => Application, { onDelete: "RESTRICT" }) + @JoinColumn({ name: 'application' }) + application: Application + @Column({ nullable: false, unique: true,