'How to generate migration file from model files

I am new to sequelizewhen I read this instruction,it refer that by using model:generate command, model files are generated and migration files are also generated. On the other hands,I edit and created model file directly,like project.ts and task.ts then I would like to generate migration file.

Is it possible ?

I am completely new to this ORM concept,if someone has opinion,please let me know Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source