fix(auth): add missing masked_token column to w_access_tokens table in migrations

This commit is contained in:
ryan
2026-08-29 11:57:04 +08:00
parent 7786f416f8
commit e568b96388
11 changed files with 48 additions and 129 deletions
@@ -35,6 +35,7 @@ CREATE TABLE IF NOT EXISTS w_access_tokens (
user_id BIGINT NOT NULL,
token_hash VARCHAR(64) NOT NULL UNIQUE,
name VARCHAR(128) NOT NULL,
masked_token VARCHAR(64) NOT NULL DEFAULT '',
description VARCHAR(255),
is_admin BOOLEAN DEFAULT 0,
expires_at DATETIME,