aboutsummaryrefslogtreecommitdiffstats
path: root/models/transaction.js
blob: f4b696a796b3516b1848fe5305b0296489a01aaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict';
module.exports = (sequelize, DataTypes) => {
  var Transaction = sequelize.define('Transaction', {
    hash: DataTypes.STRING,
    address: DataTypes.STRING,
    date: DataTypes.DATE,
    amount: DataTypes.FLOAT,
    rate: DataTypes.FLOAT
  }, {
    classMethods: {
      associate: function(models) {
        // associations can be defined here
      }
    }
  });
  return Transaction;
};