add uni-id-user-change-log

This commit is contained in:
崔红保 2022-05-07 15:40:48 +08:00
parent b7222f3816
commit 7d1dc263ce
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{
"schema": {
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表"
},
"changeKey": {
"bsonType": "string",
"description": "变化的内容phone/email"
},
"oldVal": {
"bsonType": "string",
"description": "变化之前的旧值"
},
"newVal": {
"bsonType": "string",
"description": "变化之后的新值"
},
"ip": {
"bsonType": "string",
"description": "ip地址"
},
"create_date": {
"bsonType": "timestamp",
"description": "修改时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": [
{
"IndexName": "user_id",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "user_id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/uni-id-user-chang-log",
"version": "0.0.1",
"description": "用户信息变更记录表",
"keywords": ["修改手机", "修改邮箱"],
"opendb": {
"title": "用户信息变更记录表",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}