12 lines
340 B
JavaScript
12 lines
340 B
JavaScript
const mongoose = require('mongoose');
|
|
|
|
const txSchema = 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},
|
|
memo: {type:String}
|
|
});
|
|
|
|
module.exports = mongoose.model('Tx', txSchema);
|