1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-01-14 11:02:56 -05:00

switch db from fauna to prisma & planetscale (#971)

This commit is contained in:
2022-06-23 17:26:13 -04:00
committed by GitHub
parent e782f1a8e8
commit d7eba0b39c
11 changed files with 103 additions and 247 deletions

15
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,15 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["referentialIntegrity"]
}
datasource db {
provider = "mysql"
url = env("PLANETSCALE_PRISMA_DATABASE_URL")
referentialIntegrity = "prisma"
}
model hits {
slug String @id @db.VarChar(128)
hits Int @default(1)
}