1
0
mirror of https://github.com/GOSTSec/gostexplr synced 2025-01-30 16:34:18 +00:00
gostexplr/models/address.js
R4SAS 6108749fdd updates:
fixed #4,
add block processing timer,
add hashrate fetcher, add it to block table model,
updated index page output, increase output to 50 rows,
updated database block table datatypes
2019-08-24 17:35:22 +00:00

22 lines
477 B
JavaScript

'use strict';
module.exports = (sequelize, DataTypes) => {
const Address = sequelize.define('Address', {
address: DataTypes.STRING(35),
}, {
timestamps: false,
indexes: [{
unique: true,
fields: ['address']
}],
});
const AddressVout = sequelize.define('AddressVout', {}, { timestamps: false });
Address.associate = function (models) {
models.Address.belongsToMany(models.Vout, { through: 'AddressVout' });
};
return Address;
};