Blockchain explorer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
434 B

7 years ago
'use strict';
module.exports = (sequelize, DataTypes) => {
const Vout = sequelize.define('Vout', {
n: DataTypes.MEDIUMINT.UNSIGNED,
7 years ago
value: DataTypes.DECIMAL(16, 8),
}, {
timestamps: false,
});
Vout.associate = function (models) {
models.Vout.belongsToMany(models.Address, { through: 'AddressVout' });
models.Vout.belongsToMany(models.Transaction, { through: 'TransactionVouts' });
7 years ago
};
return Vout;
};