mirror of https://github.com/GOSTSec/gostexplr
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.
21 lines
477 B
21 lines
477 B
'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; |
|
};
|
|
|