2022-03-27 22:22:28 +00:00
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
2022-04-14 20:32:01 +00:00
|
|
|
generator pothos {
|
|
|
|
provider = "prisma-pothos-types"
|
|
|
|
}
|
|
|
|
|
2022-03-27 22:22:28 +00:00
|
|
|
datasource db {
|
|
|
|
provider = "postgresql"
|
|
|
|
url = env("DIGITALOCEAN_POSTGRES")
|
|
|
|
}
|
2022-04-05 20:38:40 +00:00
|
|
|
|
2022-04-14 20:32:01 +00:00
|
|
|
model Dashboard {
|
2022-04-05 20:38:40 +00:00
|
|
|
id String @id
|
|
|
|
title String
|
|
|
|
description String
|
|
|
|
contents Json
|
|
|
|
timestamp DateTime @db.Timestamp(6)
|
|
|
|
creator String
|
|
|
|
extra Json
|
2022-04-14 20:32:01 +00:00
|
|
|
|
|
|
|
@@map("dashboards")
|
2022-04-05 20:38:40 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 20:32:01 +00:00
|
|
|
model Frontpage {
|
2022-04-05 20:38:40 +00:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
frontpage_full Json
|
|
|
|
frontpage_sliced Json
|
2022-04-14 20:32:01 +00:00
|
|
|
|
|
|
|
@@map("frontpage")
|
2022-04-05 20:38:40 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 20:32:01 +00:00
|
|
|
model History {
|
2022-04-05 20:38:40 +00:00
|
|
|
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])
|
2022-04-14 20:32:01 +00:00
|
|
|
@@map("history")
|
2022-04-05 20:38:40 +00:00
|
|
|
}
|
|
|
|
|
2022-04-14 20:32:01 +00:00
|
|
|
model Question {
|
2022-04-05 20:38:40 +00:00
|
|
|
id String @id
|
|
|
|
title String
|
|
|
|
url String
|
|
|
|
platform String
|
|
|
|
description String
|
|
|
|
options Json
|
|
|
|
timestamp DateTime @db.Timestamp(6)
|
|
|
|
stars Int
|
|
|
|
qualityindicators Json
|
|
|
|
extra Json
|
2022-04-14 20:32:01 +00:00
|
|
|
|
|
|
|
@@map("questions")
|
2022-04-05 20:38:40 +00:00
|
|
|
}
|