made create scheduling api
This commit is contained in:
@@ -1451,9 +1451,11 @@ model ScheduleHeader {
|
||||
activityVenue ActivityVenues @relation(fields: [activityVenueXid], references: [id], onDelete: Cascade)
|
||||
scheduleType String @map("schedule_type") @db.VarChar(30)
|
||||
startDate DateTime @map("start_date")
|
||||
endDate DateTime @map("end_date")
|
||||
byWeekday Boolean @default(false) @map("by_weekday")
|
||||
earlyCheckInMins Int @map("early_check_in_mins")
|
||||
endDate DateTime? @map("end_date")
|
||||
earlyCheckInMins Int? @map("early_check_in_mins")
|
||||
bookingCutOffMins Int? @map("booking_cut_off_mins")
|
||||
effectiveFromDt String? @map("effective_from_dt")
|
||||
effectiveToDt String? @map("effective_to_dt")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
@@ -1461,41 +1463,77 @@ model ScheduleHeader {
|
||||
ScheduleDetails ScheduleDetails[]
|
||||
Cancellations Cancellations[]
|
||||
ItineraryActivities ItineraryActivities[]
|
||||
scheduleOccurences ScheduleOccurences[]
|
||||
scheduleRecurrences ScheduleRecurrence[]
|
||||
|
||||
@@map("schedule_header")
|
||||
@@schema("sch")
|
||||
}
|
||||
|
||||
model ScheduleDetails {
|
||||
id Int @id @default(autoincrement())
|
||||
scheduleHeaderXid Int @map("schedule_header_xid")
|
||||
scheduleHeader ScheduleHeader @relation(fields: [scheduleHeaderXid], references: [id], onDelete: Cascade)
|
||||
startTime String @map("start_time") @db.VarChar(30)
|
||||
endTime String @map("end_time") @db.VarChar(30)
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
id Int @id @default(autoincrement())
|
||||
scheduleHeaderXid Int @map("schedule_header_xid")
|
||||
scheduleHeader ScheduleHeader @relation(fields: [scheduleHeaderXid], references: [id], onDelete: Cascade)
|
||||
occurenceDate DateTime? @map("occurence_date")
|
||||
weekDay String? @map("week_day") @db.VarChar(30)
|
||||
dayOfMonth Int? @map("day_of_month")
|
||||
startTime String @map("start_time") @db.VarChar(30)
|
||||
endTime String @map("end_time") @db.VarChar(30)
|
||||
maxCapacity Int @map("max_capacity")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
cancellations Cancellations[]
|
||||
|
||||
@@map("schedule_details")
|
||||
@@schema("sch")
|
||||
}
|
||||
|
||||
model ScheduleOccurences {
|
||||
id Int @id @default(autoincrement())
|
||||
scheduleHeaderXid Int @map("schedule_header_xid")
|
||||
scheduleHeader ScheduleHeader @relation(fields: [scheduleHeaderXid], references: [id], onDelete: Cascade)
|
||||
occurenceDate DateTime @map("occurence_date")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
|
||||
@@map("schedule_occurences")
|
||||
@@schema("sch")
|
||||
}
|
||||
|
||||
model ScheduleRecurrence {
|
||||
id Int @id @default(autoincrement())
|
||||
scheduleHeaderXid Int @map("schedule_header_xid")
|
||||
scheduleHeader ScheduleHeader @relation(fields: [scheduleHeaderXid], references: [id], onDelete: Cascade)
|
||||
weekDay String? @map("week_day") @db.VarChar(30)
|
||||
dayOfMonth Int? @map("day_of_month")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
|
||||
@@map("schedule_recurrence")
|
||||
@@schema("sch")
|
||||
}
|
||||
|
||||
model Cancellations {
|
||||
id Int @id @default(autoincrement())
|
||||
scheduleHeaderXid Int @map("schedule_header_xid")
|
||||
scheduleHeader ScheduleHeader @relation(fields: [scheduleHeaderXid], references: [id], onDelete: Cascade)
|
||||
occurenceDate DateTime @map("occurence_date")
|
||||
startTime String @map("start_time") @db.VarChar(30)
|
||||
endTime String @map("end_time") @db.VarChar(30)
|
||||
cancellationReason String @map("cancellation_reason")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
id Int @id @default(autoincrement())
|
||||
scheduleHeaderXid Int @map("schedule_header_xid")
|
||||
scheduleHeader ScheduleHeader @relation(fields: [scheduleHeaderXid], references: [id], onDelete: Cascade)
|
||||
occurenceDate DateTime @map("occurence_date")
|
||||
slotXid Int @map("slot_xid")
|
||||
slot ScheduleDetails @relation(fields: [slotXid], references: [id], onDelete: Cascade)
|
||||
cancellationReason String @map("cancellation_reason")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
updatedAt DateTime @updatedAt @map("updated_at")
|
||||
deletedAt DateTime? @map("deleted_at")
|
||||
|
||||
@@map("cancellations")
|
||||
@@schema("act")
|
||||
@@schema("sch")
|
||||
}
|
||||
|
||||
// ITINERARY MODELS
|
||||
|
||||
Reference in New Issue
Block a user