26 lines
533 B
Plaintext
26 lines
533 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 = "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")
|
|
}
|