mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-01-30 16:34:18 +00:00
R4SAS
6108749fdd
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
22 lines
477 B
JavaScript
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;
|
|
};
|