Exporting schema (model structure) to sql

We are developing a django app. The database is shared with an application written in rust. We want to be able to use the schema in the rust tests.

Is there a clean way to export the database or the individual sql used to create each table as sql files? Aware of sqlmigrate - a bit befuddled as to why it works the way it does (no all option).

Thanks in advance

Your best option for this would be to use your database’s tools to do it. (e.g. pg_dump if you’re using PostgreSQL.)