15 lines
263 B
JavaScript
15 lines
263 B
JavaScript
|
module.exports = (sequelize, DataTypes) => {
|
||
|
return sequelize.define('user_item', {
|
||
|
user_id: DataTypes.STRING,
|
||
|
item_id: DataTypes.INTEGER,
|
||
|
amount: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
'default': 0,
|
||
|
},
|
||
|
}, {
|
||
|
timestamps: false,
|
||
|
});
|
||
|
};
|
||
|
|