mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-09-20 19:43:03 +08:00
39 lines
830 B
JSON
39 lines
830 B
JSON
|
{
|
|||
|
"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": "用户名或昵称,冗余设计"
|
|||
|
},
|
|||
|
"content": {
|
|||
|
"bsonType": "string",
|
|||
|
"description": "日志内容,如:修改密码"
|
|||
|
},
|
|||
|
"ip": {
|
|||
|
"bsonType": "string",
|
|||
|
"description": "ip地址"
|
|||
|
},
|
|||
|
"create_date": {
|
|||
|
"bsonType": "timestamp",
|
|||
|
"description": "创建时间"
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"index": []
|
|||
|
}
|