zgo/backend/models/user.js

9 lines
258 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}
});
module.exports = mongoose.model('User', userSchema);