Heimdall: Block Place and Break Tracking

This commit is contained in:
Kenneth Endfinger committed 2021-12-24 01:32:40 -05:00
1 parent 847f46273b
commit 9952c4c427
8 files changed
+141 -7

No files matched your search

@@ -18,3 +18,29 @@ create table if not exists heimdall.player_positions (
);
--
select create_hypertable('heimdall.player_positions', 'time', 'player', 4, if_not_exists => TRUE);
--
create table if not exists heimdall.block_breaks (
time timestamp not null,
player uuid not null,
world uuid not null,
block text not null,
x double precision not null,
y double precision not null,
z double precision not null,
PRIMARY KEY (time, player, world)
);
--
select create_hypertable('heimdall.block_breaks', 'time', 'player', 4, if_not_exists => TRUE);
--
create table if not exists heimdall.block_places (
time timestamp not null,
player uuid not null,
world uuid not null,
block text not null,
x double precision not null,
y double precision not null,
z double precision not null,
PRIMARY KEY (time, player, world)
);
--
select create_hypertable('heimdall.block_places', 'time', 'player', 4, if_not_exists => TRUE);