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

43 lines
859 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": "doc.user_id == auth.uid",
"create": false,
"update": false,
"delete": "doc.user_id == auth.uid"
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id":{
"description": "当前用户的id",
"foreignKey": "uni-id-users._id",
"forceDefaultValue":{
"$env": "uid"
}
},
"friend_uid":{
"description": "好友的用户id",
"foreignKey": "uni-id-users._id",
"enum": {
"collection": "uni-id-users",
"field": "_id as value,username as text"
}
},
"mark":{
"description": "标记备注"
},
"class_name":{
"description": "分组名称"
},
"create_time":{
"bsonType": "timestamp",
"forceDefaultValue":{
"$env": "now"
}
}
}
}