SP-1753 Feat/booking system (#454)

* task: add get all bookable spaces API (#453)

* task: add non bookable space API
This commit is contained in:
ZaydSkaff
2025-07-08 09:02:24 +03:00
committed by GitHub
parent 66391bafd8
commit 18b21d697c
8 changed files with 1818 additions and 2347 deletions

View File

@ -77,6 +77,12 @@ export class ControllerRoute {
public static readonly ADD_BOOKABLE_SPACES_DESCRIPTION =
'This endpoint allows you to add new bookable spaces by providing the required details.';
public static readonly GET_ALL_BOOKABLE_SPACES_SUMMARY =
'Get all bookable spaces';
public static readonly GET_ALL_BOOKABLE_SPACES_DESCRIPTION =
'This endpoint retrieves all bookable spaces.';
};
};
static COMMUNITY = class {

View File

@ -1,14 +1,14 @@
import { DaysEnum } from '@app/common/constants/days.enum';
import {
Entity,
Column,
CreateDateColumn,
UpdateDateColumn,
OneToOne,
Entity,
JoinColumn,
OneToOne,
UpdateDateColumn,
} from 'typeorm';
import { SpaceEntity } from '../../space/entities/space.entity';
import { DaysEnum } from '@app/common/constants/days.enum';
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
import { SpaceEntity } from '../../space/entities/space.entity';
@Entity('bookable-space')
export class BookableSpaceEntity extends AbstractEntity {
@ -37,6 +37,9 @@ export class BookableSpaceEntity extends AbstractEntity {
@Column({ type: 'time' })
endTime: string;
@Column({ type: Boolean, default: true })
active: boolean;
@Column({ type: 'int' })
points: number;