feat: add birthday system

This commit is contained in:
2024-07-07 12:47:29 -07:00
parent 1d2ae0e5a1
commit 1db7d33e22
9 changed files with 342 additions and 13 deletions

View File

@ -60,6 +60,7 @@ model configs {
eventLogChannel String @default("")
messageReportChannel String @default("")
joinRole String @default("")
birthdayChannel String @default("")
@@unique([serverId], map: "serverId")
}
@ -80,3 +81,12 @@ model roles {
@@unique([serverId, roleId], map: "serverId_roleId")
}
model birthdays {
id String @id @default(auto()) @map("_id") @db.ObjectId
serverId String
userId String
birthday DateTime
@@unique([serverId, userId], map: "serverId_userId")
}