web/DuneBan/schema.sql
unimatrixgit 77cdf19faa Checkpoint Alpha 1.0.0.3 graphical menus and moderation evidence
Preserve the current Alpha source and artwork snapshot. See handoff/alpha-1.0.0.3 for actual deployed hashes, checks, staged follow-ups and the production pause. This checkpoint does not claim every source feature is deployed.
2026-11-02 00:05:34 +01:00

18 lines
693 B
SQL

CREATE TABLE IF NOT EXISTS dune_network_bans (
id VARCHAR(36) PRIMARY KEY,
player_uuid VARCHAR(36) NOT NULL,
player_name VARCHAR(40) NOT NULL,
actor_uuid VARCHAR(36) NOT NULL,
actor_name VARCHAR(40) NOT NULL,
reason VARCHAR(500) NOT NULL,
created_at BIGINT NOT NULL,
expires_at BIGINT,
source VARCHAR(32) NOT NULL,
active BOOLEAN NOT NULL DEFAULT TRUE,
revoked_at BIGINT,
revoked_by TEXT,
revoked_reason TEXT,
active_player_uuid VARCHAR(36) GENERATED ALWAYS AS (IF(active,player_uuid,NULL)) STORED,
UNIQUE KEY dune_network_bans_one_active(active_player_uuid)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS dune_network_ban_locks(player_uuid VARCHAR(36) PRIMARY KEY) ENGINE=InnoDB;