add opendb-admin-log

This commit is contained in:
崔红保 2020-11-04 15:46:23 +08:00
parent 0d83324a46
commit c48ebb4f4d
3 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,38 @@
{
"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": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-admin-log",
"version": "0.0.1",
"description": "通用系统日志",
"keywords": ["日志"],
"opendb": {
"title": "系统日志",
"type": "collection",
"contributors": [
{
"name": "CHB",
"email": "",
"homepage": ""
}
]
}
}

View File

@ -1,3 +1,4 @@
{ {
"opendb-admin-menus": {} "opendb-admin-menus": {},
"opendb-admin-log":{}
} }