opendb/collection/opendb-admin-log/collection.json
2020-11-23 17:39:09 +08:00

49 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": ["user_id", "content"],
"permission": {
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "用户id参考uni-id-users表"
},
"user_name": {
"bsonType": "string",
"description": "用户名或昵称,冗余设计",
"title": "用户"
},
"content": {
"bsonType": "string",
"description": "日志内容,如:修改密码",
"title": "内容"
},
"ip": {
"bsonType": "string",
"description": "ip地址",
"title": "IP",
"forceDefaultValue": {
"$env": "clientIP"
}
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"title": "时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
},
"index": []
}