Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
377 B
0
Indexable
Never
module.exports = (sequelize, DataTypes) => {
  const Category = sequelize.define('Category', {
    id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      autoIncrement: true,
      primaryKey: true
    },
    name: {
      type: DataTypes.STRING,
      allowNull: false
    },
  },
  {
    timestamps: false,
    tableName: 'categories'
  });

  return Category;
};
Leave a Comment