mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 21:30:42 +03:00
12 lines
285 B
JavaScript
12 lines
285 B
JavaScript
|
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 }
|
||
|
|
||
|
}))
|