sequelize model:generate

Generates a model and its migration

Options

NameDescription
--name <model name>Defines the name of the new model
--attributes <attributes string>A list of attributes
--forceForcefully re-creates model with the same name
--underscoredUse snake case for the timestamp's attribute names
--env <environment>The environment to run the command in
--config <file path>The path to the config file
--options-path <file path>The path to a JSON file with additional options
--migrations-path <folder path>The path to the migrations folder
--seeders-path <folder path>The path to the seeders folder
--models-path <folder path>The path to the models folder
--url <connection string>The database connection string to use
--debugWhen available show various debug information
--helpShow help
--versionShow version number