mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-23 04:10:40 +03:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
|
const { Schema, model } = require("mongoose")
|
||
|
|
||
|
module.exports = model('message', new Schema({
|
||
|
id: { type: Number, unique: true },
|
||
|
|
||
|
authorID: Number,
|
||
|
threadID: Number,
|
||
|
author: Object,
|
||
|
|
||
|
content: String,
|
||
|
time: Number,
|
||
|
deleted: { type: Boolean, default: false },
|
||
|
edited: { type: Boolean, default: false },
|
||
|
messages: [Number],
|
||
|
react: Object
|
||
|
|
||
|
}))
|