mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-27 15:01:15 +08:00
add collection uni-id-device
This commit is contained in:
parent
93c25b199d
commit
b13f6b7638
44
collection/uni-id-device/collection.json
Normal file
44
collection/uni-id-device/collection.json
Normal 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": []
|
||||||
|
}
|
17
collection/uni-id-device/package.json
Normal file
17
collection/uni-id-device/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -14,9 +14,9 @@
|
|||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
"description": "userAgent"
|
"description": "userAgent"
|
||||||
},
|
},
|
||||||
"imei": {
|
"device_id": {
|
||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
"description": "imei(需要加密存储)"
|
"description": "设备唯一标识(需要加密存储)"
|
||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"uni-id-users": {},
|
"uni-id-users": {},
|
||||||
"uni-id-address": {},
|
"uni-id-address": {},
|
||||||
|
"uni-id-device": {},
|
||||||
"uni-id-log": {}
|
"uni-id-log": {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user