Files
promote/backend/db/sql/clickhouse/sync_logs.sql
2025-03-12 23:53:36 +08:00

14 lines
343 B
SQL

DROP TABLE IF EXISTS promote.sync_logs;
CREATE TABLE IF NOT EXISTS promote.sync_logs (
timestamp DateTime DEFAULT now(),
duration_ms UInt64,
posts_synced UInt32,
comments_synced UInt32,
influencer_changes_synced UInt32,
projects_synced UInt32,
success UInt8,
error_messages String
) ENGINE = MergeTree()
ORDER BY
(timestamp)