Add foreign key constraints from usage_alert_history.feature_code, entitlement_boosts.feature_code, and entitlement_usage_records.feature_code to entitlement_features.code to prevent orphaned records. Uses cascadeOnUpdate (code renames propagate) and restrictOnDelete (cannot delete a feature that has usage/alert/boost records). Fixes #12 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 0001_01_01_000000_create_tenant_tables.php | ||
| 2026_01_26_000000_create_workspace_invitations_table.php | ||
| 2026_01_26_120000_create_usage_alert_history_table.php | ||
| 2026_01_26_140000_create_entitlement_webhooks_tables.php | ||
| 2026_01_26_140000_create_workspace_teams_table.php | ||
| 2026_01_29_000000_add_performance_indexes.php | ||
| 2026_03_24_000000_add_feature_code_foreign_keys.php | ||
| 2026_03_24_000000_cascade_delete_namespaces_on_workspace_delete.php | ||