I want to create some database tables and
models.Model
model = type(str(project_slug + "_tbl_name"), (models.Model,), attrs)
db.create_table(table_name, fields)
https://docs.djangoproject.com/en/1.11/ref/schema-editor/#create-model
example:
with connection.schema_editor() as schema_editor:
schema_editor.create_model(my_model)