Expire Telegram login button in bot
All checks were successful
Build and deploy Backend / build (push) Successful in 27s

This commit is contained in:
Ruslan Bakiev
2026-05-13 20:14:22 +07:00
parent 4aea10b195
commit 85430fa3fb
9 changed files with 336 additions and 45 deletions

View File

@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "TelegramLoginRequest" ADD COLUMN "telegramChatId" TEXT,
ADD COLUMN "telegramMessageId" INTEGER;

View File

@@ -54,15 +54,17 @@ model UserSession {
}
model TelegramLoginRequest {
id String @id @default(cuid())
tokenHash String @unique
status String @default("PENDING")
sessionToken String?
userId String?
user User? @relation(fields: [userId], references: [id])
expiresAt DateTime
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id String @id @default(cuid())
tokenHash String @unique
status String @default("PENDING")
sessionToken String?
telegramChatId String?
telegramMessageId Int?
userId String?
user User? @relation(fields: [userId], references: [id])
expiresAt DateTime
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model VoiceExperience {