mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 12:54:54 +00:00
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:
@ -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 {
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user