From 080f34c0ea038c8e760a54b6f172024fd25bc977 Mon Sep 17 00:00:00 2001 From: DCloud_JSON Date: Fri, 19 Apr 2024 20:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20group=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AD=97=E6=AE=B5ext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniCloud/database/uni-im-group.schema.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/uniCloud/database/uni-im-group.schema.json b/uniCloud/database/uni-im-group.schema.json index ca29df0..5c4db80 100644 --- a/uniCloud/database/uni-im-group.schema.json +++ b/uniCloud/database/uni-im-group.schema.json @@ -5,7 +5,7 @@ "required": ["name","join_option"], "permission": { "read": true, - "create": false, + "create": false, // 禁止前端调用,仅触发器内可用 "update": true, // 触发器内再处理 "delete": "auth.uid == doc.user_id" }, @@ -19,10 +19,7 @@ }, "user_id":{ "bsonType": "string", - "description": "群主id", - "forceDefaultValue":{ - "$env":"uid" - } + "description": "群主id" }, "name":{ "bsonType": "string", @@ -81,6 +78,10 @@ "bsonType": "bool", "description": "全群成员禁言", "defaultValue":false + }, + "ext":{ + "bsonType": "object", + "description": "自定义数据" } } } \ No newline at end of file -- GitLab