Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,31 @@
|
||||
model Site {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
tenantId String
|
||||
tenant Tenant @relation(fields: [tenantId], references: [id], onDelete: Cascade)
|
||||
|
||||
type String // "community", "booking" - references code-defined SITE_TYPES
|
||||
siteId String // "downtown" OR "patients.clinica.com" - unique per type
|
||||
name String // "Downtown Booking"
|
||||
|
||||
isActive Boolean @default(true)
|
||||
|
||||
// Tenant customizations (merged with SITE_TYPES defaults)
|
||||
branding String @default("{}")
|
||||
copy String @default("{}")
|
||||
|
||||
// Server selection (for URL preview)
|
||||
serverName String // "Local Booking", "Booking Demo"
|
||||
serverHost String // "localhost:3001", "booking.example.com"
|
||||
serverResolution String // "domain" | "path" | "subdomain"
|
||||
|
||||
// Metadata
|
||||
createdByUserId String?
|
||||
createdByUser User? @relation("sitesCreatedByUser", fields: [createdByUserId], references: [id])
|
||||
|
||||
@@unique([type, siteId]) // siteId unique per site type (NOT per tenant)
|
||||
@@index([tenantId])
|
||||
@@index([type])
|
||||
}
|
||||
Reference in new issue
Block a user