sequelize model:generate
Generates a model and its migration
Options
Name | Description |
---|---|
--name <model name> | Defines the name of the new model |
--attributes <attributes string> | A list of attributes |
--force | Forcefully re-creates model with the same name |
--underscored | Use 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 |
--debug | When available show various debug information |
--help | Show help |
--version | Show version number |