v0.1.0 completed. only the owner can create new articles, users can modify their password, username, email, or delete their account, there's auth and permissions preventing accessing other user's information, and more. onto the road to v0.2.0

This commit is contained in:
Joshua Ashton
2025-03-25 19:42:40 -06:00
parent 0a27cd1f5c
commit 9a45075010
12 changed files with 515 additions and 25 deletions
+1 -1
View File
@@ -16,9 +16,9 @@ CREATE TABLE user (
username VARCHAR(32) NOT NULL UNIQUE,
email VARCHAR(64) NOT NULL UNIQUE,
password_hash VARCHAR(256) NOT NULL,
last_active TIMESTAMP DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
role_id INT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
last_active TIMESTAMP DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
is_active BOOLEAN DEFAULT FALSE,
profile_picture VARCHAR(256),
FOREIGN KEY (role_id) REFERENCES roles (role_id)