account for advanced edit
This commit is contained in:
10
database/migrations/add_advanced_fields_to_user_products.sql
Normal file
10
database/migrations/add_advanced_fields_to_user_products.sql
Normal 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;
|
||||
Reference in New Issue
Block a user