add booking
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
import { EventType } from './event-type.entity';
|
||||
import { RecurrenceRule } from './recurrence-rule.entity';
|
||||
import { EventException } from './event-exception.entity';
|
||||
import { Booking } from './booking.entity';
|
||||
|
||||
@Entity('events')
|
||||
export class Event {
|
||||
@@ -63,4 +64,9 @@ export class Event {
|
||||
cascade: true, // Automatically save/update exceptions when event is saved
|
||||
})
|
||||
exceptions: EventException[];
|
||||
}
|
||||
|
||||
@OneToMany(() => Booking, (booking) => booking.event, {
|
||||
cascade: true, // Automatically save/update exceptions when event is saved
|
||||
})
|
||||
bookings: Booking[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user