zgo/backend/models/tx.js

11 lines
281 B
JavaScript
Raw Normal View History

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}
});
module.exports = mongoose.model('Tx', txSchema);