diff --git a/uniCloud/database/uni-im-group.schema.json b/uniCloud/database/uni-im-group.schema.json index ca29df0c9c907e864e085f87bf6642e02c0f48fb..5c4db80d884b522c1e3bd2ee552a93bd69e38022 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