made host agreement table
This commit is contained in:
@@ -439,7 +439,7 @@ model Interests {
|
||||
interestName String @unique @map("interest_name") @db.VarChar(50)
|
||||
interestColor String @map("interest_color") @db.VarChar(20)
|
||||
interestImage String @map("interest_image") @db.VarChar(500)
|
||||
interestCode String @unique @map("interest_code")@db.VarChar(10)
|
||||
interestCode String @unique @map("interest_code") @db.VarChar(10)
|
||||
displayOrder Int @map("display_order")
|
||||
isActive Boolean @default(true) @map("is_active")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
@@ -803,6 +803,7 @@ model HostHeader {
|
||||
hostParent HostParent[]
|
||||
HostTrack HostTrack[]
|
||||
Activities Activities[]
|
||||
hostAgreements HostAgreement[]
|
||||
|
||||
@@map("host_header")
|
||||
@@schema("hst")
|
||||
@@ -847,6 +848,21 @@ model HostDocuments {
|
||||
@@schema("hst")
|
||||
}
|
||||
|
||||
model HostAgreement {
|
||||
id Int @id @default(autoincrement())
|
||||
hostXid Int @map("host_xid")
|
||||
host HostHeader @relation(fields: [hostXid], references: [id], onDelete: Cascade)
|
||||
filePath String @map("file_path") @db.VarChar(400)
|
||||
versionNumber String @map("version_number") @db.VarChar(20)
|
||||
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("host_agreement")
|
||||
@@schema("hst")
|
||||
}
|
||||
|
||||
model HostSuggestion {
|
||||
id Int @id @default(autoincrement())
|
||||
hostXid Int @map("host_xid")
|
||||
@@ -1569,19 +1585,19 @@ model ScheduleHeader {
|
||||
}
|
||||
|
||||
model ScheduleDetails {
|
||||
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")
|
||||
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")
|
||||
|
||||
@@map("schedule_details")
|
||||
@@schema("sch")
|
||||
@@ -1617,17 +1633,17 @@ model ScheduleRecurrence {
|
||||
}
|
||||
|
||||
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")
|
||||
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")
|
||||
|
||||
@@map("cancellations")
|
||||
@@schema("sch")
|
||||
|
||||
Reference in New Issue
Block a user