Add seasonal availability dates to product form modal

- Add available_from and available_until fields to ProductFormValues type
- Add date picker inputs for seasonal availability in ProductFormModal
- Wire availability dates through ProductsClient to modal initial values
- Create migration 149 for database columns (already applied)
This commit is contained in:
2026-06-04 20:20:09 +00:00
parent 69767eb250
commit 0b748adfaa
4 changed files with 140 additions and 0 deletions
@@ -0,0 +1,9 @@
-- Add seasonal availability date fields to products table
-- Allows products to have start/end availability dates (e.g., "Available mid-July through mid-September")
ALTER TABLE products ADD COLUMN IF NOT EXISTS available_from TIMESTAMPTZ;
ALTER TABLE products ADD COLUMN IF NOT EXISTS available_until TIMESTAMPTZ;
-- Add comment for documentation
COMMENT ON COLUMN products.available_from IS 'Start date for product availability (seasonal)';
COMMENT ON COLUMN products.available_until IS 'End date for product availability (seasonal)';