67826b92c0
* implement core foundation * inject deps * fix incorrect migration * tail migration * use transaction for migration * fix: inject deps for tests * cleanup billing management for admin * upgrade stripe sdk to v85 * set price env variables * cleanup billing management * allow multiple dev windows * fix: settings scroll * feat: show nice video thumbnail in listview * feat: implement freemium restrictions * remove unnecessary comments * refactor * docs * format * tweak network settings better hierarchy
12 lines
314 B
PL/PgSQL
12 lines
314 B
PL/PgSQL
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;
|