added blocked model
This commit is contained in:
parent
060af3a957
commit
b5c486c4ac
2 changed files with 16 additions and 0 deletions
14
server/models/blocked.js
Normal file
14
server/models/blocked.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
module.exports = (sequelize, { STRING }) => {
|
||||
return sequelize.define(
|
||||
'Blocked',
|
||||
{
|
||||
outpoint: {
|
||||
type : STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
freezeTableName: true,
|
||||
}
|
||||
);
|
||||
};
|
|
@ -4,6 +4,7 @@ const Claim = require('./claim.js');
|
|||
const File = require('./file.js');
|
||||
const Request = require('./request.js');
|
||||
const User = require('./user.js');
|
||||
const Blocked = require('./blocked.js');
|
||||
|
||||
const Sequelize = require('sequelize');
|
||||
const logger = require('winston');
|
||||
|
@ -42,6 +43,7 @@ db['Claim'] = sequelize.import('Claim', Claim);
|
|||
db['File'] = sequelize.import('File', File);
|
||||
db['Request'] = sequelize.import('Request', Request);
|
||||
db['User'] = sequelize.import('User', User);
|
||||
db['Blocked'] = sequelize.import('Blocked', Blocked);
|
||||
|
||||
// run model.association for each model in the db object that has an association
|
||||
logger.info('associating db models...');
|
||||
|
|
Loading…
Add table
Reference in a new issue