ownership: player keeps own status and records; housekeeping rings-only
This commit is contained in:
+11
-2
@@ -27,12 +27,21 @@ CREATE TABLE IF NOT EXISTS records (
|
||||
created TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- the player's own current state: mood, outfit, stances toward people.
|
||||
-- state, not memory — no history, no decay, updated in place.
|
||||
-- written by the player (((status key: value))); GM overrides are rare and journaled.
|
||||
CREATE TABLE IF NOT EXISTS status (
|
||||
key TEXT PRIMARY KEY,
|
||||
value TEXT NOT NULL,
|
||||
updated TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- append-only audit journal; nothing here is ever updated or deleted.
|
||||
-- target is 'e<id>' for entries, 'r<id>' for records.
|
||||
-- target is 'e<id>' for entries, 'r<id>' for records, 's:<key>' for status.
|
||||
CREATE TABLE IF NOT EXISTS events (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
window TEXT NOT NULL,
|
||||
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive')),
|
||||
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive', 'amend', 'discard', 'status')),
|
||||
target TEXT NOT NULL,
|
||||
reason TEXT NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user