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:
15
prisma/schema.prisma
Normal file
15
prisma/schema.prisma
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user