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

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -