2021-10-15 19:14:49 +00:00
|
|
|
const mongoose = require('mongoose');
|
|
|
|
|
|
|
|
const userSchema = mongoose.Schema({
|
|
|
|
address: {type: String, required:true},
|
|
|
|
session: {type: String, required:true},
|
2021-11-11 15:18:38 +00:00
|
|
|
blocktime: {type: Number, required:true},
|
|
|
|
expiration: {type: Number, required:true, default:0},
|
|
|
|
pin: {type: String, required:true},
|
|
|
|
validated: {type: Boolean, required:true}
|
2021-10-15 19:14:49 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = mongoose.model('User', userSchema);
|