mirror of
https://github.com/qwerfd2/Groove_Coaster_2_Server.git
synced 2025-12-22 11:40:19 +00:00
mid-push
This commit is contained in:
@@ -5,8 +5,8 @@ import sqlalchemy
|
||||
import json
|
||||
import datetime
|
||||
|
||||
from api.database import player_database, accounts, results, devices, whitelists, blacklists, batch_tokens, binds, webs, logs, is_admin
|
||||
from api.misc import crc32_decimal, read_user_save_file, write_user_save_file
|
||||
from api.database import player_database, accounts, results, devices, whitelists, blacklists, batch_tokens, binds, webs, logs, is_admin, read_user_save_file, write_user_save_file
|
||||
from api.misc import crc32_decimal
|
||||
|
||||
TABLE_MAP = {
|
||||
"accounts": (accounts, ["id", "username", "password_hash", "save_crc", "save_timestamp", "save_id", "coin_mp", "title", "avatar", "created_at", "updated_at"]),
|
||||
@@ -14,9 +14,9 @@ TABLE_MAP = {
|
||||
"devices": (devices, ["device_id", "user_id", "my_stage", "my_avatar", "item", "daily_day", "coin", "lvl", "title", "avatar", "mobile_sum", "arcade_sum", "total_sum", "created_at", "updated_at", "last_login_at"]),
|
||||
"whitelist": (whitelists, ["id", "device_id"]),
|
||||
"blacklist": (blacklists, ["id", "ban_terms", "reason"]),
|
||||
"batch_tokens": (batch_tokens, ["id", "bind_token", "expire_at", "uses_left", "auth_id", "created_at", "updated_at"]),
|
||||
"binds": (binds, ["id", "user_id", "bind_account", "bind_code", "is_verified", "bind_token", "created_at", "updated_at"]),
|
||||
"webs": (webs, ["id", "user_id", "permission", "web_token", "created_at", "updated_at"]),
|
||||
"batch_tokens": (batch_tokens, ["id", "batch_token", "expire_at", "uses_left", "auth_id", "created_at", "updated_at"]),
|
||||
"binds": (binds, ["id", "user_id", "bind_account", "bind_code", "is_verified", "auth_token", "created_at", "updated_at"]),
|
||||
"webs": (webs, ["id", "user_id", "permission", "web_token", "last_save_export", "created_at", "updated_at"]),
|
||||
"logs": (logs, ["id", "user_id", "filename", "filesize", "timestamp"]),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user