API: Project scaffold and database schema #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — scoped from Daily 100 design spec.
Repo
forgejo_admin/daily-100-apiUser Story
As a developer
I want a FastAPI project with PostgreSQL schema
So that the backend is ready for endpoint development
Context
FastAPI project scaffold with PostgreSQL. Create
daily_entriestable: date DATE PRIMARY KEY, 8 boolean columns (doordash, pushups, jumprope, pullups, lunges, lsits, drills, curls) all DEFAULT FALSE, created_at TIMESTAMPTZ, updated_at TIMESTAMPTZ. Index on date DESC. All day boundaries use America/Denver timezone.File Targets
Files the agent should modify or create:
app/main.py-- FastAPI application entry pointapp/models.py-- SQLAlchemy model for daily_entriesapp/database.py-- async DB connection and sessionalembic/versions/001_initial.py-- initial migrationpyproject.toml-- project dependenciesFiles the agent should NOT touch:
Acceptance Criteria
GET /health) respondsTest Expectations
pytest tests/Constraints
Checklist
Related
daily-100-- project