Twitch Hyperfocus version 0

This commit is contained in:
2025-11-01 05:27:18 +10:00
parent 61076ce933
commit 82b78924a0
6 changed files with 568 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
BEGIN;
INSERT INTO version_history (component, from_version, to_version, author)
VALUES ('HYPERFOCUS', 0, 1, 'Initial Creation');
CREATE TABLE hyperfocused(
profileid INTEGER PRIMARY KEY REFERENCES user_profiles(profileid) ON DELETE CASCADE ON UPDATE CASCADE,
started_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
ends_at TIMSTAMPTZ NOT NULL,
started_in INTEGER REFERENCES communities(communityid) ON DELETE SET NULL ON UPDATE CASCADE
);
COMMIT;