You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
508 B
MySQL
29 lines
508 B
MySQL
|
2 weeks ago
|
create TABLE locations (
|
||
|
|
id INTEGER PRIMARY KEY,
|
||
|
|
x INTEGER NOT NULL,
|
||
|
|
y INTEGER NOT NULL,
|
||
|
|
z INTEGER NOT NULL,
|
||
|
|
world INTEGER NOT NULL
|
||
|
|
)
|
||
|
|
|
||
|
|
create TABLE exits (
|
||
|
|
id INTEGER PRIMARY KEY,
|
||
|
|
to INTEGER REFERENCES locations(id),
|
||
|
|
from INTEGER REFERENCES locations(id)
|
||
|
|
)
|
||
|
|
|
||
|
|
create TABLE observables (
|
||
|
|
id INTEGER PRIMARY KEY,
|
||
|
|
name TEXT NOT NULL,
|
||
|
|
description TEXT NOT NULL
|
||
|
|
)
|
||
|
|
|
||
|
|
create TABLE inventories (
|
||
|
|
id INTEGER PRIMARY KEY
|
||
|
|
)
|
||
|
|
|
||
|
|
create TABLE pools (
|
||
|
|
id INTEGER PRIMARY KEY,
|
||
|
|
type INTEGER NOT NULL
|
||
|
|
)
|