mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
add uni-id-user-change-log
This commit is contained in:
parent
b7222f3816
commit
7d1dc263ce
52
collection/uni-id-user-chang-log/collection.json
Normal file
52
collection/uni-id-user-chang-log/collection.json
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
17
collection/uni-id-user-chang-log/package.json
Normal file
17
collection/uni-id-user-chang-log/package.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user