account for advanced edit

This commit is contained in:
Jake Kasper
2025-08-22 08:40:21 -04:00
parent bb365d918d
commit f95422325c
3 changed files with 98 additions and 15 deletions

View File

@@ -0,0 +1,10 @@
-- Migration: Add advanced fields to user_products table
-- This allows users to have fully customizable products with their own brand, category, etc.
-- Add the advanced fields
ALTER TABLE user_products
ADD COLUMN custom_brand VARCHAR(100),
ADD COLUMN category_id INTEGER REFERENCES product_categories(id),
ADD COLUMN custom_product_type VARCHAR(50) CHECK (custom_product_type IN ('granular', 'liquid')),
ADD COLUMN custom_active_ingredients TEXT,
ADD COLUMN custom_description TEXT;