Heimdall: Player Session Tracking

This commit is contained in:
Kenneth Endfinger committed 2021-12-24 02:42:13 -05:00
1 parent 139249c1de
commit 1985b3c507
6 files changed
+91 -13

No files matched your search

@@ -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);