Server Module + DB (very early)

This commit is contained in:
Vladimir (unknowableshade) Eremin committed 2023-05-04 03:54:34 +03:00
1 parent 1b218fa7c3
commit 85976917b7
39 files changed
+2198 -708

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
// 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 = "postgresql"
url = env("DATABASE_URL")
}
model Guild {
id String @id
events Event[]
}
model Event {
objectId Int @id @default(autoincrement())
title String
Roles String[]
Guild Guild? @relation(fields: [guildId], references: [id])
guildId String
@@unique([guildId, title], name: "eventIdentifier")
}