mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-04-01 06:39:45 +08:00
♻️ 合并 TGSql 与 TGSqlite,重构代码作为 Plugin 使用
This commit is contained in:
88
src/plugins/Sqlite/sql/createTable.sql
Normal file
88
src/plugins/Sqlite/sql/createTable.sql
Normal file
@@ -0,0 +1,88 @@
|
||||
-- @file plugins Sqlite sql createTable.sql
|
||||
-- @brief sqlite数据库创建表语句
|
||||
-- @author BTMuli <bt-muli@outlook.com>
|
||||
-- @since Alpha v0.2.0
|
||||
|
||||
-- @brief 创建成就数据表
|
||||
create table if not exists Achievements
|
||||
(
|
||||
id integer primary key,
|
||||
series integer,
|
||||
`order` integer,
|
||||
name text,
|
||||
description text,
|
||||
reward integer,
|
||||
isCompleted boolean default false,
|
||||
completedTime text,
|
||||
progress integer default 0,
|
||||
version text,
|
||||
updated text
|
||||
);
|
||||
|
||||
-- @brief 创建成就系列数据表
|
||||
create table if not exists AchievementSeries
|
||||
(
|
||||
id integer primary key,
|
||||
`order` integer,
|
||||
name text,
|
||||
version text,
|
||||
totalCount integer default 0,
|
||||
finCount integer default 0,
|
||||
nameCard text,
|
||||
updated text
|
||||
);
|
||||
|
||||
-- @brief 创建应用数据表
|
||||
create table if not exists AppData
|
||||
(
|
||||
key text primary key,
|
||||
value text,
|
||||
updated text
|
||||
);
|
||||
|
||||
-- @brief 创建游戏账号数据表
|
||||
create table if not exists GameAccount
|
||||
(
|
||||
gameBiz text,
|
||||
gameUid text,
|
||||
isChosen boolean,
|
||||
isOfficial boolean,
|
||||
level integer,
|
||||
nickname text,
|
||||
region text,
|
||||
regionName text,
|
||||
updated text,
|
||||
primary key (gameBiz, gameUid)
|
||||
);
|
||||
|
||||
-- @brief 名片数据表
|
||||
create table if not exists NameCard
|
||||
(
|
||||
name text,
|
||||
desc text,
|
||||
type text,
|
||||
source text,
|
||||
updated text,
|
||||
primary key (name, type)
|
||||
);
|
||||
|
||||
-- @brief 创建深渊数据表
|
||||
create table if not exists SpiralAbyss
|
||||
(
|
||||
id integer primary key,
|
||||
startTime text,
|
||||
endTime text,
|
||||
totalBattleTimes integer,
|
||||
totalWinTimes integer,
|
||||
maxFloor text,
|
||||
totalStar integer,
|
||||
isUnlock boolean,
|
||||
revealRank text,
|
||||
defeatRank text,
|
||||
damageRank text,
|
||||
takeDamageRank text,
|
||||
normalSkillRank text,
|
||||
energySkillRank text,
|
||||
floors text,
|
||||
updated text
|
||||
);
|
||||
Reference in New Issue
Block a user