mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 20:51:18 +00:00
added settings to make a publicly available site with all courses
This commit is contained in:
parent
06d1290921
commit
8718700fd8
19 changed files with 2756 additions and 2 deletions
|
|
@ -97,11 +97,15 @@ model Business {
|
|||
banking String?
|
||||
plan String?
|
||||
subscription Json?
|
||||
slug String? @unique
|
||||
isPublic Boolean @default(false)
|
||||
manager Manager @relation(fields: [managerId], references: [id])
|
||||
courses Course[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@index([managerId])
|
||||
@@index([slug])
|
||||
}
|
||||
|
||||
model Course {
|
||||
|
|
@ -122,6 +126,8 @@ model Course {
|
|||
weekdays String[] // For custom frequency
|
||||
status String @default("draft") // draft, published
|
||||
createdBy String // Manager ID who created the course
|
||||
businessId String?
|
||||
business Business? @relation(fields: [businessId], references: [id], onDelete: SetNull)
|
||||
bookings CourseBooking[]
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
|
@ -129,6 +135,7 @@ model Course {
|
|||
@@index([createdBy])
|
||||
@@index([date])
|
||||
@@index([status])
|
||||
@@index([businessId])
|
||||
}
|
||||
|
||||
model Room {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue