Skip to content

Instantly share code, notes, and snippets.

@RyanKor
Created October 24, 2020 18:34
Show Gist options
  • Save RyanKor/655bf1d34da416b869e06b376b5dd1c2 to your computer and use it in GitHub Desktop.
Save RyanKor/655bf1d34da416b869e06b376b5dd1c2 to your computer and use it in GitHub Desktop.
post.js setting
module.exports = (sequelize, DataTypes) =>
(sequelize.define(
"post",
{
content: {
type: DataTypes.STRING(140),
allowNull: false,
},
img: {
type: DataTypes.STRING(200),
allowNull: true,
},
},
{
timestamps: true,
paranoid: true,
}
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment