abc
This commit is contained in:
@@ -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)
|
||||
)
|
||||
`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user