zgo/backend/models/payment.js

12 lines
354 B
JavaScript
Raw Permalink Normal View History

2022-04-11 14:48:34 +00:00
const mongoose = require('mongoose');
const paymentSchema = mongoose.Schema({
address: {type: String, required: true},
blocktime: {type: Number, required: true},
expiration: {type: Date, required: true},
amount: {type: Number, required: true},
session: {type: String, required: true}
});
module.exports = mongoose.model('Payment', paymentSchema);