Created
April 27, 2016 13:40
-
-
Save fetus-hina/5bf63ea187a9a2e126b4bea2a087b25a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- battle テーブルはバトル 1 つに 1 行 | |
-- IkaLog, TakoLog 以外は無視 | |
CREATE TABLE "battle" ( | |
"id" INTEGER NOT NULL PRIMARY KEY, -- バトルID (URLに現れる数字) | |
"user" TEXT NOT NULL, -- ユーザのログイン名 (screen_name) | |
"agent_version" TEXT NOT NULL -- IkaLog Version | |
); | |
-- battle_player テーブルはバトル詳細の 8 人並ぶ部分 | |
-- battle 一つに 0~8 行存在 | |
CREATE TABLE "battle_player" ( | |
"id" INTEGER NOT NULL PRIMARY KEY, -- stat.ink 内部IDと等しい(これ単体では特に意味はない) | |
"battle_id" INTEGER NOT NULL, -- battle.id に対応 | |
"is_me" INTEGER NOT NULL, -- 投稿者のデータなら 1、そうでなければ 0 | |
"is_my_team" INTEGER NOT NULL, -- 投稿者のチームなら 1、敵チームなら 0 | |
"rank_in_team" INTEGER NOT NULL, -- チーム内順位 | |
"level" INTEGER, -- ランク | |
"rank" TEXT, -- ウデマエ("c-"~"s+"の小文字) | |
"weapon" TEXT, -- ブキに対応するAPI用文字列("wakaba"など) | |
"kill" INTEGER, | |
"death" INTEGER, | |
"point" INTEGER | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment