2022-01-17 18:14:33 +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},
|
2022-01-22 13:49:22 +00:00
|
|
|
amount: {type: Number, required: true},
|
|
|
|
session: {type: String, required: true}
|
2022-01-17 18:14:33 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('Payment', paymentSchema);
|