Untitled
unknown
plain_text
2 years ago
377 B
4
Indexable
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;
};Editor is loading...
Leave a Comment