Skip to content

Instantly share code, notes, and snippets.

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