This commit is contained in:
2025-09-11 19:10:42 +02:00
parent 3c77b694be
commit 5fea9a74e2
2 changed files with 8 additions and 12 deletions

View File

@@ -23,8 +23,7 @@ const migrations = [
await conn.query(`
CREATE TABLE users (
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(32) UNIQUE,
input_method INT
username VARCHAR(32) UNIQUE
)
`);
@@ -33,7 +32,7 @@ const migrations = [
id INT PRIMARY KEY AUTO_INCREMENT,
winner INT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREGIN KEY (winner) REFERENCES users(id)
FOREIGN KEY (winner) REFERENCES users(id)
)
`);