Fix: DB jisangs -> moty
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
USE jisangs;
|
||||
USE moty;
|
||||
|
||||
INSERT INTO `moty_active_app` (`ActiveAppID`, `MaestroID`, `AppID`) VALUES
|
||||
INSERT INTO `active_app` (`ActiveAppID`, `MaestroID`, `AppID`) VALUES
|
||||
(1, 1, 101),
|
||||
(2, 1, 102),
|
||||
(3, 1, 1),
|
||||
@@ -21,23 +21,23 @@ INSERT INTO `moty_active_app` (`ActiveAppID`, `MaestroID`, `AppID`) VALUES
|
||||
(18, 1, 30),
|
||||
(19, 1, 39),
|
||||
(20, 1, 40),
|
||||
(21, 3, 101),
|
||||
(22, 3, 102),
|
||||
(23, 3, 1),
|
||||
(24, 3, 2),
|
||||
(25, 3, 3),
|
||||
(26, 3, 4),
|
||||
(27, 3, 5),
|
||||
(28, 3, 6),
|
||||
(29, 3, 7),
|
||||
(30, 3, 8),
|
||||
(31, 3, 11),
|
||||
(32, 3, 12),
|
||||
(33, 3, 13),
|
||||
(34, 3, 14),
|
||||
(35, 3, 15),
|
||||
(36, 3, 16),
|
||||
(37, 3, 29),
|
||||
(38, 3, 30),
|
||||
(39, 3, 39),
|
||||
(40, 3, 40);
|
||||
(21, 2, 101),
|
||||
(22, 2, 102),
|
||||
(23, 2, 1),
|
||||
(24, 2, 2),
|
||||
(25, 2, 3),
|
||||
(26, 2, 4),
|
||||
(27, 2, 5),
|
||||
(28, 2, 6),
|
||||
(29, 2, 7),
|
||||
(30, 2, 8),
|
||||
(31, 2, 11),
|
||||
(32, 2, 12),
|
||||
(33, 2, 13),
|
||||
(34, 2, 14),
|
||||
(35, 2, 15),
|
||||
(36, 2, 16),
|
||||
(37, 2, 29),
|
||||
(38, 2, 30),
|
||||
(39, 2, 39),
|
||||
(40, 2, 40);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
USE jisangs;
|
||||
USE moty;
|
||||
|
||||
INSERT INTO `moty_app` (`AppID`, `AppName`, `KoreanName`, `AppType`, `HowToPlay`) VALUES
|
||||
INSERT INTO `app` (`AppID`, `AppName`, `KoreanName`, `AppType`, `HowToPlay`) VALUES
|
||||
(1, 'practice_korean_basic', '기본 자리', 1, ''),
|
||||
(2, 'practice_korean_left_upper', '왼손 윗글쇠', 1, ''),
|
||||
(3, 'practice_korean_second_finger', '검지 글쇠', 1, ''),
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
USE jisangs;
|
||||
USE moty;
|
||||
|
||||
INSERT INTO `moty_maestro` (`MaestroID`, `Name`, `Password`, `Email`, `AccountType`, `ActivateStatus`, `AvailableActivateDateTime`, `PlayerCount`, `AcceptClausesDateTime`, `MaestroTestID`) VALUES
|
||||
INSERT INTO `maestro` (`MaestroID`, `Name`, `Password`, `Email`, `AccountType`, `ActivateStatus`, `AvailableActivateDateTime`, `PlayerCount`, `AcceptClausesDateTime`, `MaestroTestID`) VALUES
|
||||
(1, 'testplayer', '', 'test@jinaju.com', 100, 1, '2100-12-31 00:00:00', 0, '2018-05-27 17:13:35', 1),
|
||||
(2, '마에스트로 체험', '', 'test@jinaju.com', 101, 1, '2100-12-31 00:00:00', 0, '2018-07-08 00:00:00', 2);
|
||||
|
||||
|
||||
INSERT INTO `moty_player` (`PlayerID`, `MaestroID`, `Name`, `EnterCode`, `AccountType`) VALUES
|
||||
INSERT INTO `player` (`PlayerID`, `MaestroID`, `Name`, `EnterCode`, `AccountType`) VALUES
|
||||
(1, 1, '학생 체험', '', 0),
|
||||
(2, 2, '마에스트로', '', 0);
|
||||
|
||||
INSERT INTO `moty_admin` (`AdminID`, `Name`, `Password`, `Email`, `AccountType`, `ActivateStatus`) VALUES
|
||||
INSERT INTO `admin` (`AdminID`, `Name`, `Password`, `Email`, `AccountType`, `ActivateStatus`) VALUES
|
||||
(1, 'jisangs', '*F2012B4E7A22EED437B79FB53DBF79C8AAC5034B', 'jisangs@gmail.com', 1, 1);
|
||||
|
||||
+18
-18
@@ -1,4 +1,4 @@
|
||||
CREATE TABLE moty_admin (
|
||||
CREATE TABLE admin (
|
||||
AdminID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
Name CHAR(50) NOT NULL,
|
||||
Password CHAR(50) NOT NULL,
|
||||
@@ -7,7 +7,7 @@ CREATE TABLE moty_admin (
|
||||
ActivateStatus INT UNSIGNED NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE moty_maestro (
|
||||
CREATE TABLE maestro (
|
||||
MaestroID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
Name CHAR(50) NOT NULL,
|
||||
Password CHAR(50) NOT NULL,
|
||||
@@ -20,7 +20,7 @@ CREATE TABLE moty_maestro (
|
||||
MaestroTestID INT UNSIGNED
|
||||
);
|
||||
|
||||
CREATE TABLE moty_maestro_upgrade (
|
||||
CREATE TABLE maestro_upgrade (
|
||||
MaestroUpgradeID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
RegisteredAccountType INT UNSIGNED NOT NULL,
|
||||
RequestedAccountType INT UNSIGNED NOT NULL,
|
||||
@@ -28,22 +28,22 @@ CREATE TABLE moty_maestro_upgrade (
|
||||
Status INT UNSIGNED NOT NULL,
|
||||
MaestroID INT UNSIGNED NOT NULL,
|
||||
|
||||
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID)
|
||||
FOREIGN KEY (MaestroID) REFERENCES maestro(MaestroID)
|
||||
);
|
||||
|
||||
CREATE TABLE moty_player (
|
||||
CREATE TABLE 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,
|
||||
AccountType INT UNSIGNED NOT NULL,
|
||||
|
||||
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID)
|
||||
FOREIGN KEY (MaestroID) REFERENCES maestro(MaestroID)
|
||||
);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE moty_app (
|
||||
CREATE TABLE app (
|
||||
AppID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
AppName CHAR(40) NOT NULL,
|
||||
KoreanName CHAR(40) NOT NULL,
|
||||
@@ -51,18 +51,18 @@ CREATE TABLE moty_app (
|
||||
HowToPlay TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE moty_active_app (
|
||||
CREATE TABLE active_app (
|
||||
ActiveAppID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
MaestroID INT UNSIGNED NOT NULL,
|
||||
AppID INT UNSIGNED NOT NULL,
|
||||
|
||||
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID),
|
||||
FOREIGN KEY (AppID) REFERENCES moty_app(AppID)
|
||||
FOREIGN KEY (MaestroID) REFERENCES maestro(MaestroID),
|
||||
FOREIGN KEY (AppID) REFERENCES app(AppID)
|
||||
);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE moty_best_record (
|
||||
CREATE TABLE best_record (
|
||||
BestRecordID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
MaestroID INT UNSIGNED NOT NULL,
|
||||
AppID INT UNSIGNED NOT NULL,
|
||||
@@ -70,12 +70,12 @@ CREATE TABLE moty_best_record (
|
||||
BestRecord FLOAT NOT NULL,
|
||||
RecordDateTime DATETIME NOT NULL,
|
||||
|
||||
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID),
|
||||
FOREIGN KEY (AppID) REFERENCES moty_app(AppID),
|
||||
FOREIGN KEY (PlayerID) REFERENCES moty_player(PlayerID)
|
||||
FOREIGN KEY (MaestroID) REFERENCES maestro(MaestroID),
|
||||
FOREIGN KEY (AppID) REFERENCES app(AppID),
|
||||
FOREIGN KEY (PlayerID) REFERENCES player(PlayerID)
|
||||
);
|
||||
|
||||
CREATE TABLE moty_ranking (
|
||||
CREATE TABLE ranking (
|
||||
RankingID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
MaestroID INT UNSIGNED NOT NULL,
|
||||
AppID INT UNSIGNED NOT NULL,
|
||||
@@ -83,7 +83,7 @@ CREATE TABLE moty_ranking (
|
||||
Rank INT UNSIGNED NOT NULL,
|
||||
PlayerID INT UNSIGNED NOT NULL,
|
||||
|
||||
FOREIGN KEY (MaestroID) REFERENCES moty_maestro(MaestroID),
|
||||
FOREIGN KEY (AppID) REFERENCES moty_app(AppID),
|
||||
FOREIGN KEY (PlayerID) REFERENCES moty_player(PlayerID)
|
||||
FOREIGN KEY (MaestroID) REFERENCES maestro(MaestroID),
|
||||
FOREIGN KEY (AppID) REFERENCES app(AppID),
|
||||
FOREIGN KEY (PlayerID) REFERENCES player(PlayerID)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user