I created an entity, and now I wish to generate the migration that will create the table for this entity. How do I do this?
I only see documentation mentioning running migrations for changes; but what about the initial setup of the database?
Once you get into production you’ll need to synchronize model changes into the database. Typically, it is unsafe to use
synchronize: true
for schema synchronisation on production once you get data in your database. Here is where migrations come to help.
In other words: How do I generate the initial schema (prior to any migrations/changes) that I need to run in production to create the initial database with tables?