Basic functions, Home and Community Tab
This commit is contained in:
2
migrations/20251217185057_create_users_table.sql
Normal file
2
migrations/20251217185057_create_users_table.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT NOT NULL UNIQUE, password_hash TEXT NOT NULL);
|
||||
CREATE TABLE messages (id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER NOT NULL, content TEXT NOT NULL, created_at DATETIME DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (user_id) REFERENCES users(id));
|
||||
Reference in New Issue
Block a user