diff --git a/collection/uni-id-user-chang-log/collection.json b/collection/uni-id-user-chang-log/collection.json new file mode 100644 index 0000000..e640d32 --- /dev/null +++ b/collection/uni-id-user-chang-log/collection.json @@ -0,0 +1,52 @@ +{ + "schema": { + "bsonType": "object", + "required": [], + "properties": { + "_id": { + "description": "ID,系统自动生成" + }, + "user_id": { + "bsonType": "string", + "description": "用户id,参考uni-id-users表" + }, + "changeKey": { + "bsonType": "string", + "description": "变化的内容,如:phone/email" + }, + "oldVal": { + "bsonType": "string", + "description": "变化之前的旧值" + }, + "newVal": { + "bsonType": "string", + "description": "变化之后的新值" + }, + "ip": { + "bsonType": "string", + "description": "ip地址" + }, + "create_date": { + "bsonType": "timestamp", + "description": "修改时间", + "forceDefaultValue": { + "$env": "now" + } + } + } + }, + "index": [ + { + "IndexName": "user_id", + "MgoKeySchema": { + "MgoIndexKeys": [ + { + "Name": "user_id", + "Direction": "1" + } + ], + "MgoIsUnique": false + } + } + ] +} diff --git a/collection/uni-id-user-chang-log/package.json b/collection/uni-id-user-chang-log/package.json new file mode 100644 index 0000000..3dd47f1 --- /dev/null +++ b/collection/uni-id-user-chang-log/package.json @@ -0,0 +1,17 @@ +{ + "name": "@opendb/uni-id-user-chang-log", + "version": "0.0.1", + "description": "用户信息变更记录表", + "keywords": ["修改手机", "修改邮箱"], + "opendb": { + "title": "用户信息变更记录表", + "type": "collection", + "contributors": [ + { + "name": "DCloud", + "email": "", + "homepage": "https://gitee.com/dcloud/opendb" + } + ] + } +}