zgo/backend/models/user.js

11 lines
339 B
JavaScript

const mongoose = require('mongoose');
const userSchema = mongoose.Schema({
address: {type: String, required:true},
session: {type: String, required:true},
blocktime: {type: Number, required:true},
pin: {type: String, required:true},
validated: {type: Boolean, required:true}
});
module.exports = mongoose.model('User', userSchema);