Skip to content

Commit c361a94

Browse files
committed
feat: add dashboard metrics table
1 parent 22ef34e commit c361a94

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

backend/src/database/migrations/U1764931554__create_dashboard_metrics_sink.sql

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CREATE TABLE public."dashboardMetricsSnapshot" (
2+
id TEXT PRIMARY KEY DEFAULT 'snapshot',
3+
4+
"activitiesTotal" BIGINT,
5+
"activitiesLast30Days" BIGINT,
6+
"organizationsTotal" BIGINT,
7+
"organizationsLast30Days" BIGINT,
8+
"membersTotal" BIGINT,
9+
"membersLast30Days" BIGINT,
10+
"updatedAt" TIMESTAMPTZ NOT NULL DEFAULT NOW()
11+
);

0 commit comments

Comments
 (0)