transfer_20220214094750.js 565 Bytes
'use strict';

module.exports = app => {
  const { STRING, DATE, UUID, UUIDV1, JSON } = app.Sequelize;

  const Account = app.model.define('transfer', {
    id: {
      allowNull: false,
      primaryKey: true,
      type: UUID,
      defaultValue: UUIDV1,
    },
    address: { type: STRING, comment: '地址' },
    toAddress: { type: STRING, comment: '接收地址' },
    amount: { type: STRING, comment: '金额' },
    transaction: { type: JSON, comment: '交易体' },
    createdAt: { type: DATE },
    updatedAt: { type: DATE },
  });
  return Account;
};