mirror of
https://github.com/GOSTSec/gostexplr
synced 2025-01-15 17:20:04 +00:00
21 lines
475 B
JavaScript
21 lines
475 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = (sequelize, DataTypes) => {
|
||
|
const Address = sequelize.define('Address', {
|
||
|
address: DataTypes.STRING(34),
|
||
|
}, {
|
||
|
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;
|
||
|
};
|