-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sql
More file actions
141 lines (127 loc) · 3.43 KB
/
install.sql
File metadata and controls
141 lines (127 loc) · 3.43 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
create table cpLoginSessions
(
userID INT(10) not null
primary key,
cpToken VARCHAR(16) not null,
cpSession VARCHAR(32) not null
);
create table wsConfigurationOptions
(
name VARCHAR(64) not null
primary key,
value MEDIUMTEXT not null
);
create table wsConfigurationReactionTypes
(
reactionTypeID INT(10) auto_increment
primary key,
smileyID INT(10) not null,
constraint smileyID
unique (smileyID)
);
create table wsConfigurationSmileys
(
smileyID INT(10) auto_increment
primary key,
smileyName VARCHAR(32) not null,
smileyFileName VARCHAR(32) not null
);
create table wsConfigurationUserProfileInformation
(
informationID INT(10) auto_increment
primary key,
informationName VARCHAR(32) not null,
informationDescription VARCHAR(256) not null,
informationType VARCHAR(16) not null
);
create table wsFailedLogins
(
failID INT(10) auto_increment
primary key,
ipAddress VARCHAR(64) not null,
unixtime BIGINT(19) not null,
type ENUM ('registration', 'login', 'autologin') not null
);
create table wsGroup
(
groupID INT(10) auto_increment
primary key,
groupName VARCHAR(32) not null,
groupDescription VARCHAR(256) not null,
displayColor VARCHAR(7) not null,
displayName VARCHAR(32) not null,
fontColor VARCHAR(7) not null,
constraint wsGroup_displayName_uindex
unique (displayName)
);
create table wsGroupPermissions
(
groupID INT(10) not null,
permission VARCHAR(64) not null,
primary key (groupID, permission)
);
create table wsGroupUser
(
userID INT(10) not null,
groupID INT(10) not null,
primary key (groupID, userID)
);
create table wsReactions
(
reactionID INT(10) auto_increment
primary key,
contentKey VARCHAR(128) not null,
reactionTypeID INT(10) not null,
reactorID INT(10) not null
);
create table wsUser
(
userID INT(10) auto_increment
primary key,
username VARCHAR(25) not null,
email VARCHAR(64) not null,
password VARCHAR(128) null
);
create table wsUserProfile
(
userID INT(10) not null
primary key,
registrationTime INT(10) not null,
birthday INT(10) not null,
showBirthday TINYINT(3) not null,
gender TINYINT(3) not null,
location VARCHAR(128) not null,
aboutMe TEXT(65535) null,
lastActivityTime INT(10) not null,
lastActivity VARCHAR(256) not null,
avatarChanged INT(10) null,
avatarExtension VARCHAR(8) null
);
create table wsUserProfileComments
(
commentID INT(10) auto_increment
primary key,
userProfileID INT(10) not null,
userCreatorID INT(10) not null,
createTime INT(10) not null,
message VARCHAR(4096) not null
);
create table wsUserProfileInformation
(
userID INT(10) not null,
informationID INT(10) not null,
value VARCHAR(1024) not null,
primary key (userID, informationID)
);
create table wsUserSessions
(
sessionID VARCHAR(64) not null,
userID INT(10) not null,
securityToken VARCHAR(32) null,
sessionDescription VARCHAR(256) null,
expires BIGINT(19) not null,
stay TINYINT(3) default 0 not null,
primary key (userID, sessionID),
constraint wsUserSessions_clientID_uindex
unique (securityToken)
);