Cleaning up a bit and trying to rework stuff. Need to sort out initializing the DB better...
This commit is contained in:
parent
0c8bd064e3
commit
a3fa5d6645
3 changed files with 59 additions and 91 deletions
15
setup.sql
Normal file
15
setup.sql
Normal 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)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue