mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
add collection uni-id-log
This commit is contained in:
parent
e42468252e
commit
93c25b199d
37
collection/uni-id-log/collection.json
Normal file
37
collection/uni-id-log/collection.json
Normal 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": []
|
||||||
|
}
|
17
collection/uni-id-log/package.json
Normal file
17
collection/uni-id-log/package.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"uni-id-users": {},
|
||||||
"uni-id-address": {},
|
"uni-id-address": {},
|
||||||
"uni-id-users": {}
|
"uni-id-log": {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user