Files
pavelle/prisma/schema.prisma
T
naomi 15ecbf5bbe
Node.js CI / Lint and Test (pull_request) Successful in 45s
feat: initial prototype
2025-08-14 23:12:44 -07:00

27 lines
604 B
Plaintext

// 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 Users {
id String @id @default(auto()) @map("_id") @db.ObjectId
userId String
points Int @default(0)
serverId String
@@unique([serverId, userId], map: "serverId_userId")
}
model Servers {
id String @id @default(auto()) @map("_id") @db.ObjectId
serverId String @unique
theme String
spoiler Boolean @default(false)
}