Heimdall: Player Session Tracking

This commit is contained in:
Kenneth Endfinger
2021-12-24 02:42:13 -05:00
parent 139249c1de
commit 1985b3c507
6 changed files with 91 additions and 13 deletions

View File

@ -44,3 +44,13 @@ create table if not exists heimdall.block_places (
);
--
select create_hypertable('heimdall.block_places', 'time', 'player', 4, if_not_exists => TRUE);
--
create table if not exists heimdall.player_sessions (
player uuid not null,
name text not null,
"start" timestamp not null,
"end" timestamp not null,
PRIMARY KEY (player, start)
);
--
select create_hypertable('heimdall.player_sessions', 'start', 'player', 4, if_not_exists => TRUE);