Files
weibo_signin/backend/weibo_hotsign.db

47 lines
40 KiB
Plaintext
Raw Normal View History

2026-03-09 16:10:29 +08:00
SQLite format 3@ 
.n<> <0F> |<0E><0F>b 7 <0A>
<EFBFBD> |<00>V ##<01>stablesignin_logssignin_logs
CREATE TABLE signin_logs (
id INTEGER NOT NULL,
account_id VARCHAR(36) NOT NULL,
topic_title VARCHAR(100),
status VARCHAR(20) NOT NULL,
reward_info JSON,
error_message TEXT,
signed_at DATETIME DEFAULT (CURRENT_TIMESTAMP),
PRIMARY KEY (id),
FOREIGN KEY(account_id) REFERENCES accounts (id)
)<29>4<01>GtabletaskstasksCREATE TABLE tasks (
id VARCHAR(36) NOT NULL,
account_id VARCHAR(36) NOT NULL,
cron_expression VARCHAR(50) NOT NULL,
is_enabled BOOLEAN,
created_at DATETIME DEFAULT (CURRENT_TIMESTAMP),
PRIMARY KEY (id),
FOREIGN KEY(account_id) REFERENCES accounts (id) ON DELETE CASCADE
))=indexsqlite_autoindex_tasks_1tasks <09>#<01>tableaccountsaccountsCREATE TABLE accounts (
id VARCHAR(36) NOT NULL,
user_id VARCHAR(36) NOT NULL,
weibo_user_id VARCHAR(20) NOT NULL,
remark VARCHAR(100),
encrypted_cookies TEXT NOT NULL,
iv VARCHAR(32) NOT NULL,
status VARCHAR(20),
last_checked_at DATETIME,
created_at DATETIME DEFAULT (CURRENT_TIMESTAMP),
PRIMARY KEY (id),
FOREIGN KEY(user_id) REFERENCES users (id) ON DELETE CASCADE
)/Cindexsqlite_autoindex_accounts_1accountsR)sindexix_users_emailusersCREATE UNIQUE INDEX ix_users_email ON users (email)[/indexix_users_usernameusersCREATE UNIQUE INDEX ix_users_username ON users (username)<29> <01>utableusersusersCREATE TABLE users (
id VARCHAR(36) NOT NULL,
username VARCHAR(50) NOT NULL,
email VARCHAR(255) NOT NULL,
hashed_password VARCHAR(255) NOT NULL,
created_at DATETIME DEFAULT (CURRENT_TIMESTAMP),
is_active BOOLEAN,
PRIMARY KEY (id)
))=indexsqlite_autoindex_users_1users