akf-forum/models/User.js

12 lines
285 B
JavaScript
Raw Normal View History

2022-04-06 21:14:46 +03:00
const { Schema, model } = require("mongoose")
module.exports = model('user', new Schema({
id: { type: Number, unique: true },
name: String,
avatar: String,
time: Number,
deleted: { type: Boolean, default: false },
admin: { type: Boolean, default: false }
}))