feat(telegram): integrate Telegram bot for notifications and add related models
This commit is contained in:
@@ -69,6 +69,28 @@ model Verification {
|
||||
@@map("verification")
|
||||
}
|
||||
|
||||
model TelegramChat {
|
||||
id String @id @default(cuid())
|
||||
chatId BigInt? @unique
|
||||
code String @unique
|
||||
validatedAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
@@map("telegram_chats")
|
||||
}
|
||||
|
||||
model TelegramDailyMaxNotification {
|
||||
id String @id @default(cuid())
|
||||
date DateTime
|
||||
quoteType QuoteType
|
||||
maxValue Decimal @db.Money
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([date, quoteType])
|
||||
@@map("telegram_daily_max_notifications")
|
||||
}
|
||||
|
||||
enum QuoteType {
|
||||
BLUE
|
||||
BNA
|
||||
|
||||
Reference in New Issue
Block a user