metaforecast/prisma/schema.prisma

65 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-03-27 22:22:28 +00:00
generator client {
provider = "prisma-client-js"
}
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
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
@@map("dashboards")
2022-04-05 20:38:40 +00:00
}
model Frontpage {
2022-04-05 20:38:40 +00:00
id Int @id @default(autoincrement())
frontpage_full Json
frontpage_sliced Json
@@map("frontpage")
2022-04-05 20:38:40 +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])
@@map("history")
2022-04-05 20:38:40 +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
@@map("questions")
2022-04-05 20:38:40 +00:00
}