application planning

This commit is contained in:
Jake Kasper
2025-08-23 13:18:53 -04:00
parent f2f3ee52cf
commit f480fddc2c
5 changed files with 294 additions and 26 deletions

View File

@@ -0,0 +1,10 @@
-- Add nozzle_id to application plans
-- This allows linking nozzles to liquid application plans
ALTER TABLE application_plans
ADD COLUMN IF NOT EXISTS nozzle_id INTEGER REFERENCES user_equipment(id);
-- Create index for better performance
CREATE INDEX IF NOT EXISTS idx_application_plans_nozzle ON application_plans(nozzle_id);
SELECT 'Added nozzle_id to application_plans table successfully!' as migration_status;