UserSaveRestoreData

struct UserSaveRestoreData : Content

Used to bulk save/restore user accounts. This was created to allow us to download an archive of all registered users from the staging server just before embarkation, and then load the archived users onto the prod server as soon as we get on the boat.

Just archiving Users directly would work, but using a DTO gives us better control in the case of schema changes between staging and prod, or if we need to massage the data to get the restore to work correctly. Also, this method tries whenever possible to put data from related tables we want to save/restore right in the User object; otherwise we’d have to export RegistrationCode and EventFavorite(and maybe a bunch of other tables) and match everything up as part of import.

Also: This DTO contains sensitive data and should only be used for Admin routes.