skopa/models/ItemShop.js

18 lines
285 B
JavaScript
Raw Permalink Normal View History

module.exports = (sequelize, DataTypes) => {
return sequelize.define('item_shop', {
name: {
type: DataTypes.STRING,
unique: true,
},
desc: {
type: DataTypes.STRING,
},
cost: {
type: DataTypes.INTEGER,
allowNull: false,
},
}, {
timestamps: false,
});
};