7b78b64bca
Following a discussion with @Bonapara - changing the base tables
13 lines
428 B
SQL
13 lines
428 B
SQL
CREATE TABLE IF NOT EXISTS objectEvent
|
|
(
|
|
`event` LowCardinality(String) NOT NULL,
|
|
`timestamp` DateTime64(3) NOT NULL,
|
|
`userId` String DEFAULT '',
|
|
`workspaceId` String NOT NULL,
|
|
`recordId` String NOT NULL,
|
|
`objectMetadataId` String NOT NULL,
|
|
`properties` JSON,
|
|
`isCustom` Boolean DEFAULT FALSE,
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY (workspaceId, event, userId, timestamp); |