Fix: DB user column -> player

This commit is contained in:
2018-07-04 21:54:29 +09:00
parent 81860d6800
commit dc87390b8c
26 changed files with 132 additions and 132 deletions
+4 -4
View File
@@ -10,8 +10,8 @@ CREATE TABLE moty_maestro (
MaestroTestID INT UNSIGNED
);
CREATE TABLE moty_user (
UserID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
CREATE TABLE moty_player (
PlayerID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
MaestroID INT UNSIGNED NOT NULL,
Name CHAR(50) NOT NULL,
EnterCode CHAR(6) NOT NULL,
@@ -44,7 +44,7 @@ CREATE TABLE moty_best_record (
BestRecordID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
MaestroID INT UNSIGNED NOT NULL,
AppID INT UNSIGNED NOT NULL,
UserID INT UNSIGNED NOT NULL,
PlayerID INT UNSIGNED NOT NULL,
BestRecord FLOAT NOT NULL,
RecordDateTime DATETIME NOT NULL,
@@ -59,7 +59,7 @@ CREATE TABLE moty_ranking (
AppID INT UNSIGNED NOT NULL,
RankingType INT UNSIGNED NOT NULL,
Rank INT UNSIGNED NOT NULL,
UserID INT UNSIGNED NOT NULL,
PlayerID INT UNSIGNED NOT NULL,
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID),
FOREIGN KEY (AppID) REFERENCES moty_app(AppID),