mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
88360350a0
Delete the old monolithic openflare-server implementation and rename Wavelet/ to openflare-server/ to complete the migration consolidation. Update CI workflows, agent Dockerfiles, and deployment docs for the new layout (frontend/, docker/Dockerfile).
22 lines
472 B
SQL
22 lines
472 B
SQL
CREATE DATABASE IF NOT EXISTS openflare;
|
|
|
|
USE openflare;
|
|
|
|
CREATE TABLE IF NOT EXISTS w_user_access_logs
|
|
(
|
|
id UInt64,
|
|
user_id UInt64,
|
|
path String,
|
|
method String,
|
|
ip String,
|
|
user_agent String,
|
|
headers String,
|
|
status Int32,
|
|
latency Int64,
|
|
created_at DateTime
|
|
)
|
|
ENGINE = MergeTree()
|
|
PARTITION BY toYYYYMM(created_at)
|
|
ORDER BY (created_at, ip, user_id)
|
|
SETTINGS index_granularity = 8192;
|