seeding app

This commit is contained in:
Jake Kasper
2025-09-04 10:00:27 -05:00
parent 9d8b1a385c
commit 3ddbc32fe0
6 changed files with 60 additions and 13 deletions

View File

@@ -0,0 +1,10 @@
-- Add application_type and seeding_mode to application_plans for seed-aware planning
ALTER TABLE application_plans
ADD COLUMN IF NOT EXISTS application_type VARCHAR(20) CHECK (application_type IN ('granular','liquid','seed')),
ADD COLUMN IF NOT EXISTS seeding_mode VARCHAR(20) CHECK (seeding_mode IN ('overseed','new_seed'));
-- Helpful index for querying users' plans by type
CREATE INDEX IF NOT EXISTS idx_application_plans_user_type ON application_plans(user_id, application_type);
SELECT 'Added application_type and seeding_mode to application_plans' as migration_status;