feat: external video player flow and discord playback link improvements

This commit is contained in:
2026-02-22 15:20:31 +09:00
commit 4a3577f8c8
40 changed files with 4747 additions and 0 deletions

40
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,40 @@
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model GuildConfig {
id String @id @default(cuid())
guildId String @unique
logChannelId String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Warning {
id String @id @default(cuid())
guildId String
userId String
moderatorId String
reason String
createdAt DateTime @default(now())
@@index([guildId, userId])
}
model NotificationRule {
id String @id @default(cuid())
guildId String
channelId String
cronExpr String
message String
enabled Boolean @default(true)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([guildId, enabled])
}