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},
|
2021-11-18 22:38:25 +00:00
|
|
|
txid: {type:String, required:true, unique: true},
|
2021-11-11 19:52:07 +00:00
|
|
|
memo: {type:String}
|
2021-11-09 21:00:01 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Tx', txSchema);
|