Add: check player name, enterCode before add player

This commit is contained in:
2018-07-19 16:39:07 +09:00
parent c8b1e15447
commit 54b8bdb3a2
8 changed files with 163 additions and 51 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ CREATE TABLE moty_maestro (
AccountType INT UNSIGNED NOT NULL,
ActivateStatus INT UNSIGNED NOT NULL,
AvailableActivateDateTime DATETIME NOT NULL,
UserCount INT UNSIGNED NOT NULL,
PlayerCount INT UNSIGNED NOT NULL,
AcceptClausesDateTime DATETIME NOT NULL,
MaestroTestID INT UNSIGNED
);
@@ -52,7 +52,7 @@ CREATE TABLE moty_best_record (
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID),
FOREIGN KEY (AppID) REFERENCES moty_app(AppID),
FOREIGN KEY (UserID) REFERENCES moty_user(UserID)
FOREIGN KEY (PlayerID) REFERENCES moty_player(PlayerID)
);
CREATE TABLE moty_ranking (
@@ -65,5 +65,5 @@ CREATE TABLE moty_ranking (
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID),
FOREIGN KEY (AppID) REFERENCES moty_app(AppID),
FOREIGN KEY (UserID) REFERENCES moty_user(UserID)
FOREIGN KEY (PlayerID) REFERENCES moty_player(PlayerID)
);