You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
751 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 GuildConfig {
id String @id
welcome_message String @default("Hello %USER%!")
welcome_channel String?
daily_message_text String @default("daily message")
daily_message_channel String?
daily_message_time DateTime @default(now()) @db.Timetz
users User[]
}
model User {
id String
guild GuildConfig @relation(fields: [guild_id], references: [id])
guild_id String
messages Int @default(0)
@@id([id, guild_id])
}