-- 创建最小化测试数据库
CREATE TABLE IF NOT EXISTS users (
    id TEXT PRIMARY KEY,
    username TEXT NOT NULL UNIQUE,
    password_hash TEXT NOT NULL,
    role TEXT NOT NULL DEFAULT 'user',
    created_at INTEGER NOT NULL,
    updated_at INTEGER NOT NULL
);

INSERT INTO users (id, username, password_hash, role, created_at, updated_at)
VALUES ('test-admin-id', 'admin', '$argon2id$v=19$m=19456,t=2,p=1$test$hash', 'admin', 1234567890, 1234567890);
