added users table

This commit is contained in:
2024-12-21 07:18:02 +01:00
parent 7903b123de
commit 2d8f17c58b
+8
View File
@@ -5,6 +5,14 @@ CREATE TABLE users (
email VARCHAR(100) UNIQUE NOT NULL
);
CREATE TABLE users (
user_id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) UNIQUE NOT NULL,
password_hash VARCHAR(255) NOT NULL,
email VARCHAR(100) UNIQUE NOT NULL
);
CREATE TABLE characters (
character_id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,