VNOX-Server/hub/migrations/0007_community_directory.sql
loki5512344 c18ccadf99
chore(server): checkpoint deployed services and unfinished forums
User requested a checkpoint and stopped all agents. Deployed artifacts remain the last verified releases; unfinished settings/categories/forums are preserved as WIP. See TODO/roadmap for verification and remaining release/updater work.
2026-11-01 15:31:20 +01:00

10 lines
481 B
SQL

-- Separate unverified browser submissions from cryptographic server registrations.
CREATE TABLE community_servers (
id TEXT PRIMARY KEY,
name TEXT NOT NULL CHECK(length(name) BETWEEN 1 AND 80),
address TEXT NOT NULL UNIQUE,
description TEXT NOT NULL CHECK(length(description) <= 500),
owner_id TEXT NOT NULL REFERENCES accounts(user_id) ON DELETE CASCADE,
created_at INTEGER NOT NULL
);
CREATE INDEX community_servers_owner ON community_servers(owner_id);