2021-11-09 21:00:01 +00:00
|
|
|
const mongoose = require('mongoose');
|
|
|
|
|
|
|
|
const txSchema = mongoose.Schema({
|
|
|
|
address: {type: String},
|
|
|
|
session: {type: String, required:true},
|
|
|
|
confirmations: {type: Number, required:true},
|
2021-11-11 19:52:07 +00:00
|
|
|
amount: {type: Number, required:true},
|
|
|
|
txid: {type:String, required:true},
|
|
|
|
memo: {type:String}
|
2021-11-09 21:00:01 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Tx', txSchema);
|