Skip to content

The open alternative to Salesforce, designed for AI.

353 B
Raw Blame
CREATE TABLE IF NOT EXISTS workspaceEvent
(
    `event`      LowCardinality(String) NOT NULL,
    `timestamp`   DateTime64(3) NOT NULL,
    `userId`      String DEFAULT '',
    `workspaceId` String NOT NULL,
    `properties`  JSON
)
    ENGINE = MergeTree
    ORDER BY (workspaceId, timestamp, event, userId)
    TTL timestamp + INTERVAL 3 YEAR DELETE;