Simplified database

This commit is contained in:
Thomas FORGIONE 2015-05-20 11:55:26 +02:00
parent cfd8f77151
commit 181b8bdd14
1 changed files with 0 additions and 12 deletions

View File

@ -18,17 +18,6 @@ CREATE TYPE CAMERA AS(
target VECTOR3
);
CREATE TYPE DIRECTION AS ENUM(
'n',
'ne',
'e',
'se',
's',
'sw',
'w',
'nw'
);
CREATE TABLE users(
id SERIAL PRIMARY KEY,
name CHAR(50)
@ -52,6 +41,5 @@ CREATE TABLE keyboardevent(
id SERIAL PRIMARY KEY,
user_id SERIAL REFERENCES users (id),
time TIMESTAMP DEFAULT NOW(),
direction DIRECTION,
camera CAMERA
);