make usernames unique

This commit is contained in:
2025-09-11 19:00:11 +02:00
parent 6e2bee96c9
commit 3c77b694be
3 changed files with 6 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ const migrations = [
await conn.query(`
CREATE TABLE users (
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(32),
username VARCHAR(32) UNIQUE,
input_method INT
)
`);