Heimdall: Implement world change events.

This commit is contained in:
Kenneth Endfinger
2021-12-24 03:31:48 -05:00
parent 4017c3cb8c
commit b2851d13b9
4 changed files with 69 additions and 6 deletions

View File

@ -55,3 +55,14 @@ create table if not exists heimdall.player_sessions (
);
--
select create_hypertable('heimdall.player_sessions', 'start', 'player', 4, if_not_exists => TRUE);
--
create table if not exists heimdall.world_changes (
time timestamp not null,
player uuid not null,
from_world uuid not null,
from_world_name text not null,
to_world uuid not null,
to_world_name text not null
);
--
select create_hypertable('heimdall.world_changes', 'time', 'player', 4, if_not_exists => TRUE);