add collection uni-id-log

This commit is contained in:
handongxun 2020-09-02 20:18:42 +08:00
parent e42468252e
commit 93c25b199d
3 changed files with 56 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{
"schema": {
"bsonType": "object",
"required": ["user_id"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表"
},
"ua": {
"bsonType": "string",
"description": "userAgent"
},
"imei": {
"bsonType": "string",
"description": "imei(需要加密存储)"
},
"type": {
"bsonType": "string",
"enum": ["login", "logout"],
"description": "登录类型"
},
"ip": {
"bsonType": "string",
"description": "ip地址"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
}
}
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/uni-id-log",
"version": "0.0.1",
"description": "uni-id-log",
"keywords": ["登录日志"],
"opendb": {
"title": "登录日志",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}

View File

@ -1,4 +1,5 @@
{
"uni-id-users": {},
"uni-id-address": {},
"uni-id-users": {}
"uni-id-log": {}
}