Refactor: Approve test data generator tool use

This commit is contained in:
gpt-engineer-app[bot]
2025-10-10 16:44:08 +00:00
parent c8443e05a3
commit bc36583598
4 changed files with 177 additions and 20 deletions

View File

@@ -0,0 +1,10 @@
-- Add submission_item_id to test_data_registry for proper dependency tracking
ALTER TABLE test_data_registry
ADD COLUMN IF NOT EXISTS submission_item_id UUID REFERENCES submission_items(id) ON DELETE CASCADE;
-- Add index for fast lookups
CREATE INDEX IF NOT EXISTS idx_test_data_registry_item_id
ON test_data_registry(submission_item_id);
-- Update existing records to have NULL submission_item_id (for backwards compatibility)
-- New records will populate this field