mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgres"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model User {
|
|
id String @id @default(uuid())
|
|
email String? @unique
|
|
provider String?
|
|
image String?
|
|
username String?
|
|
createdAt DateTime @default(now())
|
|
projects Project[]
|
|
}
|
|
|
|
model Project {
|
|
id String @id @default(uuid())
|
|
userId String
|
|
title String
|
|
domain String @unique
|
|
prodTreeId String? // exists when published
|
|
devTreeId String
|
|
prodTreeIdHistory String @default("[]")
|
|
User User @relation(fields: [userId], references: [id])
|
|
}
|
|
|
|
model Tree {
|
|
id String @id @default(uuid())
|
|
root String
|
|
}
|
|
|
|
model InstanceProps {
|
|
id String @id @default(uuid())
|
|
instanceId String
|
|
treeId String
|
|
props String @default("[]")
|
|
}
|
|
|
|
model Breakpoints {
|
|
treeId String @id @default(uuid())
|
|
values String @default("[]")
|
|
}
|