1👍
✅
The translation of model definitions in the table SQL is handled by each of the DB backends but the bulk of the shared logic can be found in django.db.backends.creation
in particular the BaseDatabaseCreation.sql_create_model
method. Current source on Github https://github.com/django/django/blob/master/django/db/backends/creation.py
Source:stackexchange.com