zgo/backend/models/user.js

13 lines
397 B
JavaScript
Raw Normal View History

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},
pin: {type: String, required:true},
2022-02-01 18:04:16 +00:00
validated: {type: Boolean, required:true},
expired: {type: Boolean, required:true, default: false}
2021-10-15 19:14:49 +00:00
});
module.exports = mongoose.model('User', userSchema);