Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
allowNull: false
},
status: DataTypes.STRING,
type: DataTypes.STRING,
commentsEnabled: DataTypes.BOOLEAN
},
{
freezeTableName: true,
}
);
Post.associate = (models) => {
Post.belongsTo(models.user);
};
SequelizeSlugify.slugifyModel(Post, {
source: ['title']
});
return Post;
};