Files
im-system/uni-im示例/uni_modules/uni-im/uniCloud/database/uni-im-group-member.schema.json
2023-09-24 17:55:19 +08:00

46 lines
860 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
{
"bsonType": "object",
"required": [],
"permission": {
"read": true, //由触发器再次管理
"create": false,
"update": false,
"delete": true //由触发器再次管理
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"group_id":{
"bsonType": "string",
"description": "群id",
"foreignKey": "uni-im-group._id"
},
"user_id":{
"bsonType": "string",
"description": "用户id",
"foreignKey": "uni-id-users._id"
},
"role":{
"bsonType": "array",
"enum":[
{
"text":"创建者",
"value":"creator"
},
{
"text":"管理员",
"value":"admin"
}
]
},
"create_time": {
"bsonType": "timestamp",
"description": "入群时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
}