当前位置:网站首页>Sequelize. JS and hasmany - belongsto vs hasmany in serialize js
Sequelize. JS and hasmany - belongsto vs hasmany in serialize js
2022-07-05 04:07:00 【Rich in starch】
problem :
What's the difference between B.belongsTo(A) and A.hasMany(B)B.belongsTo(A) and A.hasMany(B) What's the difference
Artist = sequelize.define('Artist', {});Album = sequelize.define('Albums', {});Album.belongsTo(Artist, foreignKey: 'album_belongsl_artist');Artist.hasMany(Album, foreignKey: 'artist_hasmany_albums');if it in both cases creates the depended tables in Album ? If it is in both cases Album Created dependency table ?
Solution :
Reference resources : https://stackoom.com/en/question/1N8ZD边栏推荐
- Interview summary: This is a comprehensive & detailed Android interview guide
- 在线SQL转Excel(xls/xlsx)工具
- An elegant program for Euclid‘s algorithm
- 在线文本行固定长度填充工具
- Threejs Internet of things, 3D visualization of farms (II)
- Longyuan war "epidemic" 2021 network security competition web easyjaba
- lds链接的 顺序问题
- Why can't all browsers on my computer open web pages
- JWT vulnerability recurrence
- 长度为n的入栈顺序的可能出栈顺序种数
猜你喜欢

在线SQL转Excel(xls/xlsx)工具

Ctfshow web entry code audit

Test d'automatisation de l'interface utilisateur télécharger manuellement le pilote du navigateur à partir de maintenant

在线文本行固定长度填充工具

Alibaba cloud ECS uses cloudfs4oss to mount OSS

如何实现实时音视频聊天功能

Looking back on 2021, looking forward to 2022 | a year between CSDN and me

Threejs Internet of things, 3D visualization of farms (II)

Why can't all browsers on my computer open web pages

Threejs Internet of things, 3D visualization of farm (III) model display, track controller setting, model moving along the route, model adding frame, custom style display label, click the model to obt
随机推荐
About the recent experience of writing questions
10种寻址方式之间的区别
Threejs Internet of things, 3D visualization of farms (I)
provide/inject
在线文本行固定长度填充工具
@The problem of cross database query invalidation caused by transactional annotation
An elegant program for Euclid‘s algorithm
Use threejs to create geometry, dynamically add geometry, delete geometry, and add coordinate axes
Threejs Internet of things, 3D visualization of farm (III) model display, track controller setting, model moving along the route, model adding frame, custom style display label, click the model to obt
NEW:Devart dotConnect ADO.NET
我国算力规模排名全球第二:计算正向智算跨越
如何实现实时音视频聊天功能
长度为n的入栈顺序的可能出栈顺序
Threejs realizes rain, snow, overcast, sunny, flame
The development of mobile IM based on TCP still needs to keep the heartbeat alive
A application wakes up B should be a fast method
Rust blockchain development - signature encryption and private key public key
Why can't all browsers on my computer open web pages
ActiveReportsJS 3.1 VS ActiveReportsJS 3.0
在线SQL转Excel(xls/xlsx)工具