From 9b8ae12f0fc2fec59718605505c43514e0793908 Mon Sep 17 00:00:00 2001 From: chenruilong Date: Mon, 27 Feb 2023 20:35:04 +0800 Subject: [PATCH] feat: opendb-frv-logs --- collection/opendb-frv-logs/collection.json | 47 ++++++++++++++++++++++ collection/opendb-frv-logs/package.json | 17 ++++++++ 2 files changed, 64 insertions(+) create mode 100644 collection/opendb-frv-logs/collection.json create mode 100644 collection/opendb-frv-logs/package.json diff --git a/collection/opendb-frv-logs/collection.json b/collection/opendb-frv-logs/collection.json new file mode 100644 index 0000000..259785e --- /dev/null +++ b/collection/opendb-frv-logs/collection.json @@ -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": [] +} diff --git a/collection/opendb-frv-logs/package.json b/collection/opendb-frv-logs/package.json new file mode 100644 index 0000000..a7065da --- /dev/null +++ b/collection/opendb-frv-logs/package.json @@ -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" + } + ] + } +}