mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
新增uni-im-friend
This commit is contained in:
parent
3daccdd077
commit
342b490f92
45
collection/uni-im-friend/collection.json
Normal file
45
collection/uni-im-friend/collection.json
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"index": []
|
||||
}
|
17
collection/uni-im-friend/package.json
Normal file
17
collection/uni-im-friend/package.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "@opendb/uni-im-friend",
|
||||
"version": "0.0.1",
|
||||
"description": "uni-im-friend",
|
||||
"keywords": ["uni-im","即时通讯"],
|
||||
"opendb": {
|
||||
"title": "im好友表",
|
||||
"type": "collection",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "DCloud_JSON",
|
||||
"email": "",
|
||||
"homepage": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user