feat: implement freemium restrictions

This commit is contained in:
talksik
2026-04-14 14:42:53 -07:00
parent 1cd22cd4e2
commit 185d83401f
20 changed files with 636 additions and 46 deletions
@@ -0,0 +1,11 @@
BEGIN;
CREATE TABLE network_message_usage (
network_id TEXT NOT NULL REFERENCES networks(id) ON DELETE CASCADE,
usage_date DATE NOT NULL,
message_count INTEGER NOT NULL DEFAULT 0,
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY (network_id, usage_date)
);
COMMIT;