Server Module + DB (very early)
This commit is contained in:
1 parent
1b218fa7c3
commit
85976917b7
39 files changed
+2198
-708
No files matched your search
@@ -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")
|
||||
}
|
||||
Reference in new issue
Block a user