71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
generator pothos {
|
|
provider = "prisma-pothos-types"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DIGITALOCEAN_POSTGRES")
|
|
}
|
|
|
|
model Dashboard {
|
|
id String @id
|
|
title String
|
|
description String
|
|
contents Json
|
|
timestamp DateTime @db.Timestamp(6)
|
|
creator String
|
|
extra Json
|
|
|
|
@@map("dashboards")
|
|
}
|
|
|
|
model Frontpage {
|
|
id Int @id @default(autoincrement())
|
|
frontpage_full Json
|
|
frontpage_sliced Json
|
|
|
|
@@map("frontpage")
|
|
}
|
|
|
|
model History {
|
|
id String
|
|
title String
|
|
url String
|
|
platform String
|
|
description String
|
|
options Json
|
|
timestamp DateTime @db.Timestamp(6)
|
|
stars Int
|
|
qualityindicators Json
|
|
extra Json
|
|
pk Int @id @default(autoincrement())
|
|
|
|
@@index([id])
|
|
@@map("history")
|
|
}
|
|
|
|
model Question {
|
|
id String @id
|
|
title String
|
|
url String
|
|
platform String
|
|
description String
|
|
options Json
|
|
timestamp DateTime @db.Timestamp(6)
|
|
stars Int
|
|
qualityindicators Json
|
|
extra Json
|
|
|
|
onFrontpage FrontpageId?
|
|
@@map("questions")
|
|
}
|
|
|
|
model FrontpageId {
|
|
question Question @relation(fields: [id], references: [id])
|
|
id String @unique
|
|
}
|