opendb/collection/opendb-admin-log/collection.json

49 lines
1.1 KiB
JSON
Raw Normal View History

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