-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.sql
102 lines (72 loc) · 1.33 KB
/
db.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
CREATE TABLE active_objects (
gid int,
ssid int,
pid int,
oid int,
x int,
y int
);
CREATE TABLE games (
gid int auto_increment,
status int,
owner int
);
CREATE TABLE multi_games (
gid int,
uid int,
ssid int,
pid int
);
CREATE TABLE objects (
oid int auto_increment,
type int,
current_stats text
);
CREATE TABLE planetary_systems (
gid int,
ssid int,
pid int,
type int,
name varchar(50)
);
CREATE TABLE preset_objects (
type int auto_increment,
model varchar(100),
texture varchar(100),
initial_stats text
);
CREATE TABLE preset_planetary_systems (
type int auto_increment,
top varchar(100),
bottom varchar(100),
front varchar(100),
back varchar(100),
leftside varchar(100),
rightside varchar(100)
);
CREATE TABLE single_games (
gid int,
uid int,
ssid int,
pid int
);
CREATE TABLE solar_systems (
gid int,
ssid int,
x int,
y int,
name varchar(50)
);
CREATE TABLE users (
uid int auto_increment,
type int,
uname varchar(50),
email varchar(50),
password varchar(50),
status int
);
INSERT INTO users (uid, type, uname, email, password, status) VALUES
(1, 1, 'bw', '[email protected]', 'iamcool', 1),
(2, 1, 'cw', '[email protected]', 'iamawesome', 1),
(3, 1, 'sl', '[email protected]', 'iamcool', 1),
(4, 1, 'qht', '[email protected]', 'iamawesome', 1);