2ed7eee63d
- Add vercel.json to build only apps/web (fix Vercel build failure) - NestJS API: BlocksModule, BlocksController, BlocksService with Prisma 7 - PostgreSQL migration: Block model (path, version, isInPreview) - BlockMetaBar component: inline version edit, API fetch with offline fallback - New block components: CeoBlock, ContactFormsBlock, FooterBlock, NewsBlock, ReviewsBlock - PreviewClient: fetch isInPreview from API, block visibility toggle - Pages updated: hero, doctors, ceo, contact-forms, contact, news, reviews - docker-compose: PostgreSQL on port 5434 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
}
|
|
|
|
enum Role {
|
|
viewer
|
|
editor
|
|
}
|
|
|
|
enum ComponentStatus {
|
|
draft
|
|
review
|
|
approved
|
|
}
|
|
|
|
model User {
|
|
id String @id @default(uuid())
|
|
email String @unique
|
|
name String
|
|
passwordHash String
|
|
role Role @default(viewer)
|
|
createdAt DateTime @default(now())
|
|
|
|
components ExperimentalComponent[]
|
|
}
|
|
|
|
model ExperimentalComponent {
|
|
id String @id @default(uuid())
|
|
name String
|
|
baseComponent String
|
|
attributes Json
|
|
status ComponentStatus @default(draft)
|
|
author User @relation(fields: [authorId], references: [id])
|
|
authorId String
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|
|
|
|
model Block {
|
|
id String @id @default(uuid())
|
|
path String @unique
|
|
name String
|
|
version String
|
|
isInPreview Boolean @default(false)
|
|
updatedAt DateTime @updatedAt
|
|
createdAt DateTime @default(now())
|
|
}
|