0
How to search the column record nome
on the table categoria
, for id
that was saved in the table postagens
?
const db = require('./db')
const Post = db.sequelize.define('postagens', {
titulo: {
type: db.Sequelize.STRING
},
slug: {
type: db.Sequelize.STRING
},
descricao: {
type: db.Sequelize.TEXT
},
conteudo: {
type: db.Sequelize.TEXT
},
categoria: {
type: db.Sequelize.STRING
}
})
module.exports = Post
If the answer has solved your problem, consider branding it as a solution. See How and why to accept an answer?
– Rafael Tavares