Initial Rough Cut of Heimdall Tracking System

This commit is contained in:
Kenneth Endfinger
2021-12-24 00:08:38 -05:00
parent 78566d08ad
commit e0183127b4
14 changed files with 293 additions and 3 deletions

View File

@ -0,0 +1,20 @@
--
create extension if not exists "uuid-ossp";
--
create extension if not exists timescaledb;
--
create schema if not exists heimdall;
--
create table if not exists heimdall.player_positions (
time timestamp not null,
player uuid not null,
world uuid not null,
x double precision not null,
y double precision not null,
z double precision not null,
pitch double precision not null,
yaw double precision not null,
PRIMARY KEY (time, player, world)
);
--
select create_hypertable('heimdall.player_positions', 'time', 'player', 4, if_not_exists => TRUE);