I have three models that look something like this:
const Reagent = sequelize.define('reagent', {
name: {
type: DataTypes.STRING
allowNull: false,
},
...
})
const Box = sequelize.define('box', {
code: {
type: DataTypes.STRING,
allowNull: false,
unique: true,
},
quantity: {
type: DataTypes.INTEGER,
allowNull: false,
},
...
})
const BoxActivity = sequelize.define('boxActivity',
β¦
Top comments (0)