feat: add index for user table

This commit is contained in:
Ou 2024-11-27 20:38:34 +08:00
parent 53e57c1d2f
commit 89264a972e

View File

@ -18,6 +18,9 @@ export class UserTable {
updated INTEGER
);
`).run()
await this.db.prepare(`
CREATE INDEX IF NOT EXISTS idx_user_id ON user(id);
`).run()
logger.success(`init user table`)
}