cli icon indicating copy to clipboard operation
cli copied to clipboard

Add association support to model generation

Open sdepold opened this issue 10 years ago • 15 comments

sequelize model:create --name Task --attributes title:string --associations "belongsTo:User, hasMany:Contributor"

sdepold avatar Oct 03 '14 10:10 sdepold

I too would love to see this implemented.

socketwiz avatar Dec 05 '14 21:12 socketwiz

+1 :-)

fdevibe avatar Dec 10 '14 08:12 fdevibe

:+1:

roblabla avatar Dec 14 '14 23:12 roblabla

I'm going to give it a whirl. I too have wanted to see Sequelize-CLI be able to handle more of the grunt work of modifying models after creation and creating associations between models.

boichee avatar Apr 22 '15 05:04 boichee

:+1:

i-manolov avatar Jul 21 '15 20:07 i-manolov

+2

polykiln avatar Aug 23 '15 10:08 polykiln

+1

Is there a way to do this manually and still use the structure and functionality of Sequelize-CLI?

trendsetter37 avatar Jan 15 '16 15:01 trendsetter37

I was searching if this was implemented or not. Definitely wanted! :+1:

xdvarpunen avatar Feb 26 '16 03:02 xdvarpunen

+1

saraf avatar Mar 27 '16 09:03 saraf

+1

ufocoder avatar Mar 31 '16 12:03 ufocoder

+1

tbw777 avatar Mar 31 '16 12:03 tbw777

Instead of +1, you can "subscribe" to the thread and be assured you will receive notifications.

faceleg avatar Apr 04 '16 03:04 faceleg

what is contributor here

Shrikanta9 avatar Apr 05 '16 04:04 Shrikanta9

Just wanted to ask since it doesn't seem there's been any activity on this issue in over two years. Has any progress been made related to this?

leeallen337 avatar Jun 06 '18 13:06 leeallen337

Hey guys! I am working on this.

Luleherll avatar Mar 04 '20 09:03 Luleherll