// 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]) }