diff --git a/server/database/user.ts b/server/database/user.ts index aff3022..8a35039 100644 --- a/server/database/user.ts +++ b/server/database/user.ts @@ -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`) }