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

This commit is contained in:
jake authored and GitHub committed 2022-06-23 17:26:13 -04:00
1 parent e782f1a8e8
commit d7eba0b39c
11 files changed
+103 -247

No files matched your search

+15
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)
}