[accounts][models] Implement natural key and foreign key for Profile and AccountSettings

This fixes an issue on restore with unique constraints violation.
1 job for <span class="ref-name">fix_backup_restore</span> in 15 minutes and 27 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #159701
docker-build
build_linux_36

00:15:27

66.0%