mirror of
https://github.com/kristoferssolo/Axium.git
synced 2025-10-21 16:00:34 +00:00
6 lines
336 B
SQL
6 lines
336 B
SQL
CREATE TABLE todos (
|
|
id SERIAL PRIMARY KEY, -- Auto-incrementing primary key
|
|
task TEXT NOT NULL, -- Task description, cannot be null
|
|
description TEXT, -- Optional detailed description
|
|
user_id INT NOT NULL REFERENCES users(id) -- Foreign key to link to users table
|
|
); |