mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Remove excessive indentation in tables.sql
This commit is contained in:
parent
8bbf40ac95
commit
e02ef55844
@ -10,9 +10,9 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
BannedSince INTEGER DEFAULT 0 NOT NULL,
|
BannedSince INTEGER DEFAULT 0 NOT NULL,
|
||||||
BanReason TEXT DEFAULT '' NOT NULL,
|
BanReason TEXT DEFAULT '' NOT NULL,
|
||||||
PRIMARY KEY(AccountID AUTOINCREMENT)
|
PRIMARY KEY(AccountID AUTOINCREMENT)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Players (
|
CREATE TABLE IF NOT EXISTS Players (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
AccountID INTEGER NOT NULL,
|
AccountID INTEGER NOT NULL,
|
||||||
FirstName TEXT NOT NULL COLLATE NOCASE,
|
FirstName TEXT NOT NULL COLLATE NOCASE,
|
||||||
@ -47,9 +47,9 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
FOREIGN KEY(AccountID) REFERENCES Accounts(AccountID) ON DELETE CASCADE,
|
FOREIGN KEY(AccountID) REFERENCES Accounts(AccountID) ON DELETE CASCADE,
|
||||||
UNIQUE (AccountID, Slot),
|
UNIQUE (AccountID, Slot),
|
||||||
UNIQUE (FirstName, LastName)
|
UNIQUE (FirstName, LastName)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Appearances (
|
CREATE TABLE IF NOT EXISTS Appearances (
|
||||||
PlayerID INTEGER UNIQUE NOT NULL,
|
PlayerID INTEGER UNIQUE NOT NULL,
|
||||||
Body INTEGER DEFAULT 0 NOT NULL,
|
Body INTEGER DEFAULT 0 NOT NULL,
|
||||||
EyeColor INTEGER DEFAULT 1 NOT NULL,
|
EyeColor INTEGER DEFAULT 1 NOT NULL,
|
||||||
@ -60,9 +60,9 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
Height INTEGER DEFAULT 0 NOT NULL,
|
Height INTEGER DEFAULT 0 NOT NULL,
|
||||||
SkinColor INTEGER DEFAULT 1 NOT NULL,
|
SkinColor INTEGER DEFAULT 1 NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Inventory (
|
CREATE TABLE IF NOT EXISTS Inventory (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
Slot INTEGER NOT NULL,
|
Slot INTEGER NOT NULL,
|
||||||
ID INTEGER NOT NULL,
|
ID INTEGER NOT NULL,
|
||||||
@ -71,50 +71,50 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
TimeLimit INTEGER DEFAULT 0 NOT NULL,
|
TimeLimit INTEGER DEFAULT 0 NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
UNIQUE (PlayerID, Slot)
|
UNIQUE (PlayerID, Slot)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS QuestItems (
|
CREATE TABLE IF NOT EXISTS QuestItems (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
Slot INTEGER NOT NULL,
|
Slot INTEGER NOT NULL,
|
||||||
ID INTEGER NOT NULL,
|
ID INTEGER NOT NULL,
|
||||||
Opt INTEGER NOT NULL,
|
Opt INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
UNIQUE (PlayerID, Slot)
|
UNIQUE (PlayerID, Slot)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Nanos (
|
CREATE TABLE IF NOT EXISTS Nanos (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
ID INTEGER NOT NULL,
|
ID INTEGER NOT NULL,
|
||||||
Skill INTEGER NOT NULL,
|
Skill INTEGER NOT NULL,
|
||||||
Stamina INTEGER DEFAULT 150 NOT NULL,
|
Stamina INTEGER DEFAULT 150 NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
UNIQUE (PlayerID, ID)
|
UNIQUE (PlayerID, ID)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS RunningQuests (
|
CREATE TABLE IF NOT EXISTS RunningQuests (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
TaskID INTEGER NOT NULL,
|
TaskID INTEGER NOT NULL,
|
||||||
RemainingNPCCount1 INTEGER NOT NULL,
|
RemainingNPCCount1 INTEGER NOT NULL,
|
||||||
RemainingNPCCount2 INTEGER NOT NULL,
|
RemainingNPCCount2 INTEGER NOT NULL,
|
||||||
RemainingNPCCount3 INTEGER NOT NULL,
|
RemainingNPCCount3 INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Buddyships (
|
CREATE TABLE IF NOT EXISTS Buddyships (
|
||||||
PlayerAID INTEGER NOT NULL,
|
PlayerAID INTEGER NOT NULL,
|
||||||
PlayerBID INTEGER NOT NULL,
|
PlayerBID INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerAID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerAID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
FOREIGN KEY(PlayerBID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
FOREIGN KEY(PlayerBID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS Blocks (
|
CREATE TABLE IF NOT EXISTS Blocks (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
BlockedPlayerID INTEGER NOT NULL,
|
BlockedPlayerID INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
FOREIGN KEY(BlockedPlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
FOREIGN KEY(BlockedPlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS EmailData (
|
CREATE TABLE IF NOT EXISTS EmailData (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
MsgIndex INTEGER NOT NULL,
|
MsgIndex INTEGER NOT NULL,
|
||||||
ReadFlag INTEGER NOT NULL,
|
ReadFlag INTEGER NOT NULL,
|
||||||
@ -129,9 +129,9 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
DeleteTime INTEGER NOT NULL,
|
DeleteTime INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
UNIQUE(PlayerID, MsgIndex)
|
UNIQUE(PlayerID, MsgIndex)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS EmailItems (
|
CREATE TABLE IF NOT EXISTS EmailItems (
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
MsgIndex INTEGER NOT NULL,
|
MsgIndex INTEGER NOT NULL,
|
||||||
Slot INTEGER NOT NULL,
|
Slot INTEGER NOT NULL,
|
||||||
@ -141,9 +141,9 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
TimeLimit INTEGER NOT NULL,
|
TimeLimit INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE,
|
||||||
UNIQUE (MsgIndex, Slot)
|
UNIQUE (MsgIndex, Slot)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS RaceResults(
|
CREATE TABLE IF NOT EXISTS RaceResults(
|
||||||
EPID INTEGER NOT NULL,
|
EPID INTEGER NOT NULL,
|
||||||
PlayerID INTEGER NOT NULL,
|
PlayerID INTEGER NOT NULL,
|
||||||
Score INTEGER NOT NULL,
|
Score INTEGER NOT NULL,
|
||||||
@ -151,4 +151,4 @@ CREATE TABLE IF NOT EXISTS Accounts (
|
|||||||
Time INTEGER NOT NULL,
|
Time INTEGER NOT NULL,
|
||||||
Timestamp INTEGER NOT NULL,
|
Timestamp INTEGER NOT NULL,
|
||||||
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
FOREIGN KEY(PlayerID) REFERENCES Players(PlayerID) ON DELETE CASCADE
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user