update rezerv

This commit is contained in:
2026-05-31 21:36:19 +03:30
parent 7affab06f1
commit 150b189be5
25 changed files with 1134 additions and 49 deletions
+11
View File
@@ -9,6 +9,7 @@ import {
} from 'typeorm';
import { BusinessEntity } from './business.entity';
import { BusinessServiceEntity } from './business-service.entity';
import { BusinessServiceClassEntity } from './business-service-class.entity';
import { UserEntity } from './user.entity';
export enum BookingStatus {
@@ -46,6 +47,16 @@ export class BookingEntity {
@Column('uuid')
businessServiceId!: string;
@ManyToOne(() => BusinessServiceClassEntity, { nullable: true, onDelete: 'RESTRICT' })
@JoinColumn({ name: 'serviceClassId' })
serviceClass!: BusinessServiceClassEntity | null;
@Column({ type: 'uuid', nullable: true })
serviceClassId!: string | null;
@Column({ type: 'uuid', nullable: true })
bookingGroupId!: string | null;
@Column({ type: 'timestamptz' })
scheduledAt!: Date;