Add time rezerv
This commit is contained in:
@@ -12,6 +12,7 @@ import { BookingEntity } from './booking.entity';
|
||||
import { BusinessAttributeValueEntity } from './business-attribute-value.entity';
|
||||
import { BusinessCategoryEntity } from './business-category.entity';
|
||||
import { BusinessImageEntity } from './business-image.entity';
|
||||
import { BusinessAvailabilitySlotEntity } from './business-availability-slot.entity';
|
||||
import { BusinessServiceEntity } from './business-service.entity';
|
||||
import { UserEntity } from './user.entity';
|
||||
|
||||
@@ -77,6 +78,11 @@ export class BusinessEntity {
|
||||
@OneToMany(() => BookingEntity, (booking) => booking.business)
|
||||
bookings!: BookingEntity[];
|
||||
|
||||
@OneToMany(() => BusinessAvailabilitySlotEntity, (slot) => slot.business, {
|
||||
cascade: true,
|
||||
})
|
||||
availabilitySlots!: BusinessAvailabilitySlotEntity[];
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt!: Date;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user