From 56cabe0b3182c14bf6c509de89ff9dd7a465a447 Mon Sep 17 00:00:00 2001 From: Liuiuiu <2949212735@qq.com> Date: Fri, 8 Nov 2024 19:10:11 +0800 Subject: [PATCH] lyc-vv1 --- models/model.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/model.js b/models/model.js index dcb9288..96743d0 100644 --- a/models/model.js +++ b/models/model.js @@ -71,12 +71,11 @@ let noticeSchema = new mongoose.Schema({ time: String, status: Boolean, userid: { - type: mongoose.Schema.Types.ObjectId, + type: mongoose.Schema.Types.ObjectId, ref: 'user' } }) - // 访客表 let visitorSchema = new mongoose.Schema({ name: String, // 访客姓名 -- Gitee