transfer_20220215183054.js
630 Bytes
'use strict';
module.exports = app => {
const { STRING, DATE, UUID, UUIDV1, JSON, BOOLEAN } = 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: '交易体' },
finish: { type: BOOLEAN, comment: '是否完成' },
createdAt: { type: DATE },
updatedAt: { type: DATE },
});
return Account;
};