mirror of
https://github.com/yoncodes/BD2PS.git
synced 2026-08-05 06:12:14 +02:00
changed file section
This commit is contained in:
@@ -4,6 +4,5 @@ CREATE TABLE "HuntingGroundInfo" (
|
||||
"IsAuto" INTEGER,
|
||||
"CurrentId" INTEGER,
|
||||
"HighestId" INTEGER,
|
||||
"MonsterInfoIndex" INTEGER, -- References MonsterInfo.InvenIndex
|
||||
"PackId" INTEGER
|
||||
);
|
||||
);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
CREATE TABLE "MapActiveInfo" (
|
||||
"Index" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
"Uid" BIGINT NOT NULL,
|
||||
"MapId" INTEGER
|
||||
);
|
||||
"MapId" INTEGER,
|
||||
"ActiveInfo" TEXT
|
||||
);
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
CREATE TABLE "QuestLevelInfo" (
|
||||
CREATE TABLE QuestLevelInfo (
|
||||
"Index" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
"Uid" BIGINT NOT NULL,
|
||||
"PackId" INTEGER,
|
||||
"PackId" INTEGER NOT NULL DEFAULT 1,
|
||||
"QuestLevel" INTEGER,
|
||||
"ClearQuest" INTEGER,
|
||||
"QuestOpt" INTEGER,
|
||||
"IsLevelComplete" INTEGER
|
||||
);
|
||||
"IsLevelComplete" INTEGER,
|
||||
UNIQUE("Uid", "PackId")
|
||||
);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
CREATE TABLE "QuestMaxClearInfo" (
|
||||
CREATE TABLE QuestMaxClearInfo (
|
||||
"Index" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
"Uid" BIGINT NOT NULL,
|
||||
"PackId" INTEGER,
|
||||
"MaxClearId" INTEGER
|
||||
);
|
||||
"PackId" INTEGER NOT NULL DEFAULT 1,
|
||||
"MaxClearId" INTEGER,
|
||||
UNIQUE("Uid", "PackId")
|
||||
);
|
||||
|
||||
6
database/migrations/316_hunting_ground_monster.sql
Normal file
6
database/migrations/316_hunting_ground_monster.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE IF NOT EXISTS HuntingGroundMonster (
|
||||
"HuntingGroundIndex" INTEGER NOT NULL,
|
||||
"MonsterIndex" INTEGER NOT NULL,
|
||||
FOREIGN KEY("HuntingGroundIndex") REFERENCES HuntingGroundInfo("Index") ON DELETE CASCADE,
|
||||
FOREIGN KEY("MonsterIndex") REFERENCES MonsterInfo("Index") ON DELETE CASCADE
|
||||
);
|
||||
10
database/migrations/317_user_quest.sql
Normal file
10
database/migrations/317_user_quest.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE "UserQuest" (
|
||||
"Index" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
"Uid" BIGINT NOT NULL,
|
||||
"QuestId" INTEGER NOT NULL,
|
||||
"PackId" INTEGER,
|
||||
"Status" INTEGER DEFAULT 0, -- 0 = not accepted, 1 = in progress, 2 = completed, 3 = reward claimed
|
||||
"Progress" INTEGER DEFAULT 0, -- quest progress (from questValue[0])
|
||||
"RewardClaimed" INTEGER DEFAULT 0, -- 0 = false, 1 = true
|
||||
"LastUpdate" BIGINT -- timestamp for daily resets, analytics, etc.
|
||||
);
|
||||
Reference in New Issue
Block a user