Skip to content

Commit

Permalink
updated changed entities
Browse files Browse the repository at this point in the history
  • Loading branch information
justnyx committed Dec 7, 2024
1 parent 2a345eb commit 62f3cbf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/backend/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
})
Expand Down
2 changes: 2 additions & 0 deletions apps/backend/src/comments/entities/comment.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export class Comment {

@IsDate()
endTime: Date;

isReservable: boolean;
}
4 changes: 4 additions & 0 deletions apps/backend/src/users/entities/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ export class User {

@IsEnum(Role)
role: Role;

cardRight: any;

profilePicture: any;
}

0 comments on commit 62f3cbf

Please sign in to comment.