UNPKG

origintrail-node

Version:

OriginTrail Node - Decentralized Knowledge Graph Node Library

42 lines (40 loc) 1.06 kB
// NOT USED ANYMORE export default (sequelize, DataTypes) => { const blockchain = sequelize.define( 'missed_paranet_asset', { id: { autoIncrement: true, primaryKey: true, type: DataTypes.INTEGER, }, blockchainId: { allowNull: false, type: DataTypes.STRING, }, ual: { allowNull: false, type: DataTypes.STRING, }, paranetUal: { allowNull: false, type: DataTypes.STRING, }, errorMessage: { allowNull: true, type: DataTypes.TEXT, }, createdAt: { type: DataTypes.DATE, }, updatedAt: { type: DataTypes.DATE, }, }, { underscored: true }, ); blockchain.associate = () => { // associations can be defined here }; return blockchain; };