monorepo/visions/server/migrations/01-charsheet/up.sql

13 lines
196 B
MySQL
Raw Normal View History

2024-11-30 23:55:51 +00:00
CREATE TABLE games(
uuid TEXT PRIMARY KEY,
name TEXT
);
2024-11-30 23:55:51 +00:00
CREATE TABLE characters(
uuid TEXT PRIMARY KEY,
2024-11-30 23:55:51 +00:00
game TEXT,
data TEXT,
FOREIGN KEY(game) REFERENCES games(uuid)
);