mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
The NexusDashboard-parity dashboard (dDashboardServer) and everything built on it on the experimental branch: accounts, characters, properties and moderation tools, permissions shared with in-game slash commands, economy reports, World 3D and property 3D views with client scenery, scheduled events (features, vanity changes, live events, announcements, restarts), vanity files and events, the CDClient browser, the message inspector with saved captures, chat filter tools, community challenges, live ops, the AI moderator helper, and the server-side changes they need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.3 KiB
SQL
34 lines
1.3 KiB
SQL
/* Strike thresholds, player reports and chat filter words. See the MySQL migration. */
|
|
ALTER TABLE account_strikes ADD COLUMN step TEXT NOT NULL DEFAULT '';
|
|
ALTER TABLE account_strikes ADD COLUMN step_count INTEGER NOT NULL DEFAULT 0;
|
|
|
|
CREATE TABLE IF NOT EXISTS player_reports (
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
created_at BIGINT NOT NULL,
|
|
kind TEXT NOT NULL,
|
|
reporter_id BIGINT NOT NULL DEFAULT 0,
|
|
reporter_account_id INTEGER NOT NULL DEFAULT 0,
|
|
object_id BIGINT NOT NULL DEFAULT 0,
|
|
object_lot INTEGER NOT NULL DEFAULT 0,
|
|
target_character_id BIGINT NOT NULL DEFAULT 0,
|
|
target_account_id INTEGER NOT NULL DEFAULT 0,
|
|
property_id BIGINT NOT NULL DEFAULT 0,
|
|
zone_id INTEGER NOT NULL DEFAULT 0,
|
|
instance_id INTEGER NOT NULL DEFAULT 0,
|
|
clone_id INTEGER NOT NULL DEFAULT 0,
|
|
body TEXT NOT NULL DEFAULT '',
|
|
status INTEGER NOT NULL DEFAULT 0,
|
|
handled_by TEXT NOT NULL DEFAULT '',
|
|
handled_at BIGINT NOT NULL DEFAULT 0,
|
|
resolution TEXT NOT NULL DEFAULT ''
|
|
);
|
|
CREATE INDEX IF NOT EXISTS player_reports_status ON player_reports (status, id);
|
|
CREATE INDEX IF NOT EXISTS player_reports_target ON player_reports (target_account_id);
|
|
|
|
CREATE TABLE IF NOT EXISTS chat_filter_words (
|
|
word TEXT NOT NULL PRIMARY KEY,
|
|
allowed INTEGER NOT NULL,
|
|
added_by TEXT NOT NULL DEFAULT '',
|
|
added_at BIGINT NOT NULL
|
|
);
|