mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-23 16:19:08 +03:00
15 lines
290 B
JavaScript
15 lines
290 B
JavaScript
|
const { Schema, model } = require("mongoose")
|
||
|
|
||
|
|
||
|
module.exports = model('thread', new Schema({
|
||
|
id: { type: Number, unique: true },
|
||
|
|
||
|
authorID: Number,
|
||
|
author: Object,
|
||
|
|
||
|
title: String,
|
||
|
time: Number,
|
||
|
deleted: { type: Boolean, default: false },
|
||
|
messages: [Number]
|
||
|
|
||
|
}))
|