mysql - Is necessary to create an explicit relation in the data base after defining it in the Sails js' model? -
i created model respective relation using following approach
http://sailsjs.com/documentation/concepts/models-and-orm/associations
and seems ok. but, when open model's tables sailsjs
created, in mysql
workbench. there isn't relation between tables. so; need specify relations or leave tables , continue working relations exists on sailsjs
?
join table required n-n relationships, not 1-n ones.
also, in config/models.js
, if migrate set 'drop'
sails drops , creates tables. when using 'alter'
tries create added tables, using 'safe'
doesn't create added tables.
there isn't relation between tables
what type of relation expecting?
Comments
Post a Comment