mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-01-19 19:21:03 +00:00
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
'use strict';
|
|
|
|
module.exports = (sequelize, DataTypes) => {
|
|
const Vout = sequelize.define('Vout', {
|
|
n: DataTypes.MEDIUMINT.UNSIGNED,
|
|
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' });
|
|
};
|
|
|
|
return Vout;
|
|
}; |