generated from nhcarrigan/template
feat: initial prototype
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
datasource db {
|
||||
provider = "mongodb"
|
||||
url = env("MONGO_URI")
|
||||
}
|
||||
|
||||
model Highlights {
|
||||
id String @id @default(auto()) @map("_id") @db.ObjectId
|
||||
serverId String
|
||||
userId String
|
||||
words String[]
|
||||
|
||||
@@unique([serverId, userId], map: "serverId_userId")
|
||||
@@index([serverId], map: "serverId")
|
||||
}
|
||||
Reference in New Issue
Block a user