2018-06-28 00:11:25 +02:00
|
|
|
module.exports = (sequelize, { STRING }) => {
|
|
|
|
return sequelize.define(
|
|
|
|
'Tor',
|
|
|
|
{
|
2018-06-28 02:30:26 +02:00
|
|
|
address: {
|
2018-06-28 00:11:25 +02:00
|
|
|
type : STRING,
|
|
|
|
allowNull: false,
|
|
|
|
},
|
2018-06-28 02:30:26 +02:00
|
|
|
fingerprint: {
|
|
|
|
type : STRING,
|
|
|
|
allowNull: true,
|
|
|
|
},
|
2018-06-28 00:11:25 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
freezeTableName: true,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|