mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-05 06:37:28 +08:00
- Add a log database to record all playing scores - Fix a bug that if an exception is raised before flask app runs, logger will not work well.
25 lines
592 B
SQL
25 lines
592 B
SQL
create table if not exists cache(key text primary key,
|
|
value text,
|
|
expire_time int
|
|
);
|
|
create table if not exists user_score(user_id int,
|
|
song_id text,
|
|
difficulty int,
|
|
time_played int,
|
|
score int,
|
|
shiny_perfect_count int,
|
|
perfect_count int,
|
|
near_count int,
|
|
miss_count int,
|
|
health int,
|
|
modifier int,
|
|
clear_type int,
|
|
rating real,
|
|
primary key(user_id, song_id, difficulty, time_played)
|
|
);
|
|
|
|
create index if not exists user_score_1 on user_score (song_id, difficulty);
|
|
create index if not exists user_score_2 on user_score (time_played);
|
|
|
|
PRAGMA journal_mode = WAL;
|
|
PRAGMA default_cache_size = 4000; |