mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-09-21 05:21:43 +00:00
feat(db): add TelegramChannel.allowsForwarding + IngestionRun.zipsForwarded
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- AlterTable: forward-priority ingestion support.
|
||||
-- allowsForwarding is nullable — null means "not yet checked", treated the
|
||||
-- same as false until confirmed true (safe default: download+reupload path).
|
||||
ALTER TABLE "telegram_channels"
|
||||
ADD COLUMN "allowsForwarding" BOOLEAN;
|
||||
|
||||
-- AlterTable: count of packages forwarded (no download) during a run.
|
||||
-- Additive, non-null with a default of 0 — no data change for existing rows.
|
||||
ALTER TABLE "ingestion_runs"
|
||||
ADD COLUMN "zipsForwarded" INTEGER NOT NULL DEFAULT 0;
|
||||
@@ -428,6 +428,11 @@ model TelegramChannel {
|
||||
isForum Boolean @default(false)
|
||||
isActive Boolean @default(false)
|
||||
category String? @db.VarChar(64)
|
||||
/// Whether this chat currently allows forwarding/saving (the inverse of
|
||||
/// TDLib's chat.has_protected_content). Null = not yet checked; treated the
|
||||
/// same as false everywhere in the worker (safe default: use the
|
||||
/// download+reupload path until this is confirmed true).
|
||||
allowsForwarding Boolean?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@ -570,6 +575,7 @@ model IngestionRun {
|
||||
zipsDuplicate Int @default(0)
|
||||
zipsIngested Int @default(0)
|
||||
zipsBackfilled Int @default(0)
|
||||
zipsForwarded Int @default(0)
|
||||
errorMessage String?
|
||||
|
||||
// Live activity tracking — written by worker in real-time
|
||||
|
||||
Reference in New Issue
Block a user