feat: opendb-frv-logs

This commit is contained in:
chenruilong 2023-02-27 20:35:04 +08:00
parent 907d345308
commit 9b8ae12f0f
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{
"schema": {
"bsonType": "object",
"permission": {
"read": "doc._id == auth.uid || 'CREATE_UNI_ID_USERS' in auth.permission",
"create": "'CREATE_UNI_ID_USERS' in auth.permission",
"update": "doc._id == auth.uid || 'UPDATE_UNI_ID_USERS' in auth.permission",
"delete": "'DELETE_UNI_ID_USERS' in auth.permission"
},
"properties": {
"_id": {
"description": "存储文档 ID用户 ID系统自动生成"
},
"certify_id": {
"bsonType": "string",
"description": "认证id"
},
"user_id": {
"bsonType": "string",
"description": "用户id"
},
"real_name": {
"bsonType": "string",
"description": "姓名"
},
"identity": {
"bsonType": "string",
"description": "身份证号码"
},
"status": {
"bsonType": "int",
"description": "认证状态0 未认证 1 等待认证 2 认证通过 3 认证失败",
"maximum": 3,
"minimum": 0
},
"created_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
},
"required": []
},
"index": []
}

View File

@ -0,0 +1,17 @@
{
"name": "@opendb/opendb-frv-logs",
"version": "0.0.1",
"description": "opendb-frv-logs",
"keywords": ["实人认证日志"],
"opendb": {
"title": "实人认证日志",
"type": "collection",
"contributors": [
{
"name": "DCloud",
"email": "",
"homepage": "https://gitee.com/dcloud/opendb"
}
]
}
}