cli icon indicating copy to clipboard operation
cli copied to clipboard

Generate model with no attributes

Open tresdev opened this issue 7 years ago • 2 comments

Can I generate model with no attributes but default ones, id, createdAt, updatedAt ?

I tried sequelize model:generate --name TableName and sequelize model:generate --name TableName --attributes but to no avail.

tresdev avatar Dec 17 '18 11:12 tresdev

Just ran into this myself. I have a model that for now just has associations with other models while I'm getting the project up and running. Ideally, I wouldn't have to add a dummy attribute to stand this up.

kwasimensah avatar Apr 03 '20 10:04 kwasimensah

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 21 '20 18:06 stale[bot]