Cleaning up a bit and trying to rework stuff. Need to sort out initializing the DB better...

This commit is contained in:
Alex Stevenson 2025-07-26 18:26:52 -04:00
parent 0c8bd064e3
commit a3fa5d6645
3 changed files with 59 additions and 91 deletions

15
setup.sql Normal file
View file

@ -0,0 +1,15 @@
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS entities;
CREATE TABLE IF NOT EXISTS users (
id INTEGER PRIMARY KEY,
name VARCHAR(64)
);
CREATE TABLE IF NOT EXISTS entities (
id INTEGER PRIMARY KEY,
user_id INTEGER,
name VARCHAR(64),
spawn_line VARCHAR(64),
FOREIGN KEY(user_id) REFERENCES users(id)
);