feat: initial prototype
Node.js CI / Lint and Test (pull_request) Successful in 45s

This commit is contained in:
2025-08-14 23:12:02 -07:00
parent f67291b8da
commit 15ecbf5bbe
35 changed files with 6265 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
// 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)
}