Feature #175
closedCMS, WEB | Retire format/sort lookup tables, split media storage by env
Description
Five changes across the CMS (nota-admin) and storefront (secretflowers-web), which share one database (db_nota). Bundled because three touch the same products row shape.
Bouquet code autofill (CMS) — prefill code/slug from last entry + 1; no generator exists today.
Sort options static (both) — SortAppliers is already authoritative; the DB rows only supplied labels. Move to lang files, drop catalog_sort_options.
Formats retired (both) — drop product_formats, products.type, both CMS resources, the catalog format filter, and the product-page format line. Deliberate feature removal.
assembly_time removed (both) — it silently overrode the availability label via getStatusText(). Column goes. composition keeps its column, loses its CMS field, always auto-generates.
Media split by env (both) — the media disk is hardcoded to s3, so local uploads hit the production bucket. Add MEDIA_DRIVER=local|s3 with MEDIA_LOCAL_ROOT pointing at the storefront's storage/app/public. MinIO removed from both repos.
Posiflora DEVELOP tag gated (WEB) — currently unconditional; gate on ! environment('production'). No sandbox exists, so make no live POSTs.
The storefront owns every catalog table; the CMS mirrors schema into guarded migrations for its sqlite tests. CMS resource deletions must land before the storefront's drop migration, or the admin 500s.
Premise corrections: the column is assembly_time, not assembly; the tables are product_formats / catalog_sort_options.
Full plan: docs/plans/2026-08-24-catalog-cleanup-and-media-split.md (identical in both repos).