Commit graph

2 commits

Author SHA1 Message Date
ZTatman
c983a9a480 feat(web): add FastAPI service with async SQLAlchemy and Docker setup
- Add Grant model with proper typing (uuid.UUID, timezone-aware datetime)
- Add DB enum for grant_type to enforce valid values at database level
- Configure SQLAlchemy Base with datetime timezone mapping
- Harden Dockerfile: pin uv version, non-root user, security env vars
- Update docker-compose with correct healthcheck database name
- Add default database_url for Docker Compose deployment
- Add PYTHONUNBUFFERED and PYTHONDONTWRITEBYTECODE env vars
- Clean up .gitignore (merged into root)
2026-04-24 14:30:49 -04:00
ZTatman
36c6231266 Add FastAPI setup with async SQLAlchemy and Grant model
- Add config.py with pydantic-settings for env configuration
- Add database.py with async SQLAlchemy (asyncpg driver)
- Add Grant model with id, token, timestamps, and grant_type
- Use Literal[public, private] for type-safe enum storage
- Add routes/links.py with Pydantic request/response models
- Update pyproject.toml dependencies
2026-04-23 17:20:16 -04:00