Export indexes before FK

Hello. Exporting in any format creates the foreign keys before creating indexes. FKs which depend on unique indexes fail because of this (at least on Postgres they do)
Fixing it after exporting is easy, I just have to cut and paste the unique indexes before the FKs. But it’d be nice if it was already like that after exporting.

Thank you