Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

1.7 KB
Raw Blame

paths: - "backend/app//DeletionRequest/*" - "backend/app//Deletion.php" - "backend/app/Services/Domain/Account/Anonymization/" - "frontend/src/**/eletion"

Account deletion

  • Hard delete can't rely on cascades (many foreign keys to events, orders and organizers are NO ACTION). A new account-owned table needs an anonymizer in Services/Domain/Account/Anonymization/ and a place in the AccountHardDeletionService delete order.
  • account_deletion_requests has no foreign keys on purpose, so rows survive the hard delete.
  • account_subscriptions holds no personal data and has no anonymizer on purpose: anonymization keeps the row (and the Stripe customer, for invoices); hard delete removes it. Deletion cancels the Stripe subscriptions first (AccountSubscriptionCancellationService).
  • Never delete organizer_configurations or account_configuration rows (shared plan rows) or ticket_lookup_tokens (buyer-email scoped across accounts). stripe_customers has no account foreign key; match it by Stripe account id.
  • Users can belong to several accounts: a sole-account user is scrubbed and soft-deleted, and their user_identities rows are deleted so they can't sign back in with single sign-on; a shared user only loses the account_users row.
  • An account's SSO connection, its domains and the user_identities tagged with the connection are deleted before accounts (SsoConnectionAnonymizer mirrors this).
  • Anonymisation nulls the organizer_settings free text (homepage_sections, website_url, location_details, social_media_handles, seo_*). Event homepage_sections follow the event description retention rule and stay on the soft-deleted event.