2024-02-16 23:19:58 +00:00
|
|
|
CREATE TABLE users (
|
|
|
|
id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
2024-02-20 02:30:39 +00:00
|
|
|
email VARCHAR(255) NOT NULL,
|
2024-02-16 23:19:58 +00:00
|
|
|
password VARCHAR(255) NOT NULL,
|
2024-02-20 02:30:39 +00:00
|
|
|
name VARCHAR(255) NOT NULL,
|
2024-02-16 23:19:58 +00:00
|
|
|
|
|
|
|
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
|
2024-02-20 02:30:39 +00:00
|
|
|
PRIMARY KEY(`id`),
|
|
|
|
UNIQUE KEY(`email`)
|
|
|
|
) Engine=InnoDb;
|