forked from ZonkeyStripes/The-Death-Clause
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
35 lines (30 loc) · 964 Bytes
/
schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DROP DATABASE if EXISTS deathClause;
CREATE DATABASE deathClause;
use deathClause;
-- CREATE TABLE users(
-- UserID int not null auto_increment PRIMARY KEY,
-- User varchar (30),
-- password varchar (30)
-- );
-- CREATE TABLE gameObjects (
-- GobID int not null auto_increment PRIMARY KEY,
-- name varchar(100),
-- description varchar (100),
-- IMAGE varchar (255)
-- );
-- CREATE TABLE dialog (
-- DialogID int not null auto_increment PRIMARY KEY,
-- npc varchar(100),
-- part integer(20),
-- dialect varchar(255)
-- );
-- CREATE TABLE inventory (
-- InvID int not null auto_increment PRIMARY KEY,
-- FOREIGN KEY (GobID) REFERENCES gameObjects(GobID),
-- FOREIGN KEY (UserID) REFERENCES users(UserID)
-- );
-- CREATE TABLE composite (
-- MainID int auto_increment PRIMARY KEY,
-- FOREIGN KEY (DialogID) REFERENCES dialog(DialogID),
-- FOREIGN KEY (GobID) REFERENCES gameObjects(GobID)
-- );