rw create table when start app

This commit is contained in:
2025-03-12 20:52:23 +08:00
parent d9a71976f5
commit 210603b685
9 changed files with 898 additions and 104 deletions

View File

@@ -1,6 +1,12 @@
-- 删除旧表
DROP TABLE IF EXISTS events;
DROP TABLE IF EXISTS follower_events;
DROP TABLE IF EXISTS like_events;
DROP TABLE IF EXISTS view_events;
DROP TABLE IF EXISTS mv_kol_performance;
DROP TABLE IF EXISTS mv_platform_distribution;

View File

@@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS promote.sync_logs (
timestamp DateTime,
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)