From 62f3cbff70a52fb14af3de9bbb8c834402e43b8d Mon Sep 17 00:00:00 2001 From: justnyx Date: Sat, 7 Dec 2024 17:40:41 +0100 Subject: [PATCH] updated changed entities --- apps/backend/src/app.module.ts | 4 +++- apps/backend/src/comments/entities/comment.entity.ts | 2 ++ apps/backend/src/users/entities/user.entity.ts | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.ts index c7e8200..075e70b 100644 --- a/apps/backend/src/app.module.ts +++ b/apps/backend/src/app.module.ts @@ -3,10 +3,12 @@ import { PrismaModule } from 'nestjs-prisma'; import { AppController } from './app.controller'; import { AppService } from './app.service'; +import { CommentsModule } from './comments/comments.module'; +import { ReservationsModule } from './reservations/reservations.module'; import { UsersModule } from './users/users.module'; @Module({ - imports: [PrismaModule.forRoot({ isGlobal: true }), UsersModule], + imports: [PrismaModule.forRoot({ isGlobal: true }), UsersModule, ReservationsModule, CommentsModule], controllers: [AppController], providers: [AppService], }) diff --git a/apps/backend/src/comments/entities/comment.entity.ts b/apps/backend/src/comments/entities/comment.entity.ts index 87e03ef..0f4d098 100644 --- a/apps/backend/src/comments/entities/comment.entity.ts +++ b/apps/backend/src/comments/entities/comment.entity.ts @@ -13,4 +13,6 @@ export class Comment { @IsDate() endTime: Date; + + isReservable: boolean; } diff --git a/apps/backend/src/users/entities/user.entity.ts b/apps/backend/src/users/entities/user.entity.ts index d7f9113..c798ac4 100644 --- a/apps/backend/src/users/entities/user.entity.ts +++ b/apps/backend/src/users/entities/user.entity.ts @@ -26,4 +26,8 @@ export class User { @IsEnum(Role) role: Role; + + cardRight: any; + + profilePicture: any; }