📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
const { queriesRunner, dbName } = require('./setup')
queriesRunner([
`CREATE TABLE IF NOT EXISTS ${dbName}.api_key (
id String, userId String, name String, keyHash String,
encryptedKey String, keyPreview String, scopes String, projectIds String,
allProjects UInt8 DEFAULT 0, unrestricted UInt8 DEFAULT 0,
created Nullable(String), rotated Nullable(String)
) ENGINE = MergeTree() ORDER BY (userId, id)`,
])