Spaces:
Sleeping
Sleeping
Download update_neon_schema.sql from MuhammedSuhaib/todo-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 487 Bytes
-
https://huggingface.co/spaces/MuhammedSuhaib/todo-fastapi/resolve/main/update_neon_schema.sql
- Command line
-
hf download hf://spaces/MuhammedSuhaib/todo-fastapi/update_neon_schema.sql
-
curl -L -o update_neon_schema.sql https://huggingface.co/spaces/MuhammedSuhaib/todo-fastapi/resolve/main/update_neon_schema.sql
487 Bytes
| -- Phase II Neon schema (tasks only) | |
| -- Backend is JWT-verify only, no user table | |
| CREATE TABLE IF NOT EXISTS task ( | |
| id SERIAL PRIMARY KEY, | |
| user_id TEXT NOT NULL, | |
| title TEXT NOT NULL, | |
| description TEXT, | |
| completed BOOLEAN DEFAULT FALSE, | |
| priority TEXT DEFAULT 'medium', | |
| category TEXT, | |
| tags JSONB DEFAULT '[]', | |
| created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | |
| updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP | |
| ); | |
| CREATE INDEX IF NOT EXISTS idx_task_user_id ON task(user_id); |