add collection uni-id-device

This commit is contained in:
handongxun 2020-09-02 20:40:12 +08:00
parent 93c25b199d
commit b13f6b7638
4 changed files with 64 additions and 2 deletions

View File

@ -0,0 +1,44 @@
{
"schema": {
"bsonType": "object",
"required": ["user_id"],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表"
},
"device_id": {
"bsonType": "string",
"description": "设备唯一标识(需要加密存储)"
},
"vendor": {
"bsonType": "string",
"description": "设备厂商"
},
"model": {
"bsonType": "string",
"description": "设备型号"
},
"platform": {
"bsonType": "string",
"description": "平台类型"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
},
"last_active_date": {
"bsonType": "timestamp",
"description": "最后登录时间"
},
"last_active_ip": {
"bsonType": "string",
"description": "最后登录IP"
}
}
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/uni-id-device",
"version": "0.0.1",
"description": "uni-id-device",
"keywords": ["设备信息"],
"opendb": {
"title": "设备信息",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}

View File

@ -14,9 +14,9 @@
"bsonType": "string",
"description": "userAgent"
},
"imei": {
"device_id": {
"bsonType": "string",
"description": "imei(需要加密存储)"
"description": "设备唯一标识(需要加密存储)"
},
"type": {
"bsonType": "string",

View File

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