zgo/backend/models/user.js

10 lines
258 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},
blocktime: {type: Number, required:true}
});
module.exports = mongoose.model('User', userSchema);