global fix and update bot Api
This commit is contained in:
@@ -438,6 +438,9 @@ model ChatMessage {
|
||||
metadata Json?
|
||||
storageKey String?
|
||||
mimeType String?
|
||||
isPinned Boolean @default(false)
|
||||
pinnedAt DateTime?
|
||||
pinnedById String?
|
||||
createdAt DateTime @default(now())
|
||||
editedAt DateTime?
|
||||
deletedAt DateTime?
|
||||
@@ -446,6 +449,7 @@ model ChatMessage {
|
||||
poll ChatPoll?
|
||||
|
||||
@@index([roomId, createdAt])
|
||||
@@index([roomId, isPinned, pinnedAt])
|
||||
}
|
||||
|
||||
model ChatPoll {
|
||||
@@ -603,6 +607,8 @@ model BotMessage {
|
||||
text String?
|
||||
mediaUrl String?
|
||||
payload Json?
|
||||
isPinned Boolean @default(false)
|
||||
pinnedAt DateTime?
|
||||
createdAt DateTime @default(now())
|
||||
editedAt DateTime?
|
||||
bot Bot @relation(fields: [botId], references: [id], onDelete: Cascade)
|
||||
@@ -610,6 +616,7 @@ model BotMessage {
|
||||
|
||||
@@unique([botId, telegramMsgId])
|
||||
@@index([botChatId])
|
||||
@@index([botChatId, isPinned, pinnedAt])
|
||||
}
|
||||
|
||||
model BotInboundMessage {
|
||||
|
||||
Reference in New Issue
Block a user