status-go/multiaccounts/migrations/sql/1719915420_add_appmetrics.up.sql
Andrea Maria Piana 9a59d6a459 feat(metrics)_: add centralized metrics
This commit adds support for centralized metrics.
There are two providers as of now, and we haven't quite decided which
one to go for, so for the time being both are supported.
It also introduces a new endpoint InitializeApplication that replaces
OpenAccounts
2024-07-11 10:05:31 +01:00

15 lines
377 B
SQL

CREATE TABLE centralizedmetrics_metrics (
id SERIAL PRIMARY KEY,
event_name VARCHAR(255) NOT NULL,
event_value BLOB NOT NULL,
timestamp INTEGER NOT NULL,
platform VARCHAR NOT NULL,
app_version VARCHAR NOT NULL
);
CREATE TABLE centralizedmetrics_uuid (
uuid TEXT PRIMARY KEY,
enabled BOOL DEFAULT FALSE,
user_confirmed BOOL DEFAULT FALSE
);