feat (Worker): add a worker to check and adjust the TikTok graph

This commit is contained in:
Pierre Ryssen
2026-03-13 12:00:00 +01:00
parent 61f426ef3c
commit 4ef8913759
11 changed files with 960 additions and 52 deletions

View File

@@ -13,6 +13,7 @@ model User {
password String
name String?
role String @default("member")
plan String @default("free")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
accounts TrackedAccount[]
@@ -51,10 +52,12 @@ model TrackedAccount {
}
model Snapshot {
id String @id @default(cuid())
accountId String
account TrackedAccount @relation(fields: [accountId], references: [id], onDelete: Cascade)
followers Int
views Int
createdAt DateTime @default(now())
id String @id @default(cuid())
accountId String
account TrackedAccount @relation(fields: [accountId], references: [id], onDelete: Cascade)
followers Int
likes Int @default(0)
videoCount Int @default(0)
views Int @default(0)
createdAt DateTime @default(now())
}