zgo/backend/models/zectxs.js

13 lines
363 B
JavaScript
Raw Permalink Normal View History

2022-04-11 14:48:34 +00:00
const mongoose = require('mongoose');
const ZecTxSchema = mongoose.Schema({
address: {type: String},
session: {type: String, required:true},
confirmations: {type: Number, required:true},
amount: {type: Number, required:true},
txid: {type:String, required:true, unique: true},
memo: {type:String}
});
module.exports = mongoose.model('ZecTx', ZecTxSchema);