- products.media_id / categories.media_id (Alembic 0027): the old
/static/product_images photos are processed into the library (named after
their product; missing or unreadable files logged and skipped; the old
folder is left on disk) and products.image_url goes. The static mount is gone.
- APIs give `image` {id, name, thumb, card, full}; a product's image_url is its
card size. media_id on create/update (null clears); media.not_a_picture for
a video. POST /api/products/{id}/image is gone: uploads go to /api/media.
- Products and categories register their media usage: a photo in use can't
be deleted.
- Media: AVIF pictures (Pillow 12.3), GET /api/media/{id} gives each stored
size's bytes and resolution and the uploader's name; upload processing moved
into services/media.ingest (also used by the data move).
- QR menu photo push (contract C-3): the library's card size, WebP.
- tests: test_product_photos.py (7, incl. the 0027 data move); 497 passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
255 B
Plaintext
15 lines
255 B
Plaintext
fastapi==0.115.0
|
|
uvicorn[standard]==0.30.6
|
|
websockets==13.1
|
|
sqlalchemy==2.0.36
|
|
pydantic-settings==2.6.1
|
|
python-escpos==3.1
|
|
Pillow==12.3.0
|
|
bcrypt==4.2.0
|
|
pyjwt==2.9.0
|
|
httpx==0.27.2
|
|
python-multipart==0.0.9
|
|
cryptography==46.0.4
|
|
alembic==1.14.0
|
|
tzdata==2026.6
|