opendb/collection/uni-id-users/collection.json
2020-08-20 16:25:31 +08:00

175 lines
4.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": [],
"properties": {
"_id": {
"description": "存储文档 ID用户 ID系统自动生成"
},
"username": {
"bsonType": "string",
"description": "用户名,不允许重复"
},
"password": {
"bsonType": "string",
"description": "密码,加密存储"
},
"nickname": {
"bsonType": "string",
"description": "用户昵称"
},
"gender": {
"bsonType": "int",
"minimum": 0,
"maximum": 2,
"description": "用户性别0 未知 1 男性 2 女性"
},
"status": {
"bsonType": "int",
"minimum": 0,
"maximum": 3,
"description": "用户状态0 正常 1 禁用 2 审核中 3 审核拒绝"
},
"mobile": {
"bsonType": "string",
"description": "手机号码"
},
"mobile_confirmed": {
"bsonType": "int",
"minimum": 0,
"maximum": 1,
"description": "手机号验证状态0 未验证 1 已验证"
},
"email": {
"bsonType": "string",
"description": "邮箱地址"
},
"email_confirmed": {
"bsonType": "int",
"minimum": 0,
"maximum": 1,
"description": "邮箱验证状态0 未验证 1 已验证"
},
"avatar": {
"bsonType": "string",
"description": "头像地址"
},
"wx_unionid": {
"bsonType": "string",
"description": "微信unionid"
},
"wx_openid": {
"bsonType": "object",
"description": "微信各个平台openid",
"properties": {
"app-plus": {
"bsonType": "string",
"description": "app平台微信openid"
},
"mp-weixin": {
"bsonType": "string",
"description": "微信小程序平台openid"
}
}
},
"ali_openid": {
"bsonType": "string",
"description": "支付宝平台openid"
},
"comment": {
"bsonType": "string",
"description": "备注"
},
"realname_auth": {
"bsonType": "object",
"description": "实名认证信息",
"required": ["type", "auth_status"],
"properties": {
"type": {
"bsonType": "int",
"minimum": 0,
"maximum": 1,
"description": "用户类型0 个人用户 1 企业用户"
},
"auth_status": {
"bsonType": "int",
"minimum": 0,
"maximum": 3,
"description": "认证状态0 未认证 1 等待认证 2 认证通过 3 认证失败"
},
"auth_date": {
"bsonType": "timestamp",
"description": "认证通过时间"
},
"real_name": {
"bsonType": "string",
"description": "真实姓名/企业名称"
},
"identity": {
"bsonType": "string",
"description": "身份证号码/营业执照号码"
},
"id_card_front": {
"bsonType": "string",
"description": "身份证正面照 URL"
},
"id_card_back": {
"bsonType": "string",
"description": "身份证反面照 URL"
},
"in_hand": {
"bsonType": "string",
"description": "手持身份证照片 URL"
},
"license": {
"bsonType": "string",
"description": "营业执照 URL"
},
"contact_person": {
"bsonType": "string",
"description": "联系人姓名"
},
"contact_mobile": {
"bsonType": "string",
"description": "联系人手机号码"
},
"contact_email": {
"bsonType": "string",
"description": "联系人邮箱"
}
}
},
"register_date": {
"bsonType": "timestamp",
"description": "注册时间"
},
"register_ip": {
"bsonType": "string",
"description": "注册时 IP 地址"
},
"last_login_date": {
"bsonType": "timestamp",
"description": "最后登录时间"
},
"last_login_ip": {
"bsonType": "string",
"description": "最后登录时 IP 地址"
},
"token": {
"bsonType": "array",
"description": "用户token"
},
"inviter_uid": {
"bsonType": "array",
"description": "用户全部上级邀请者"
},
"my_invite_code": {
"bsonType": "string",
"description": "用户自身邀请码"
}
}
},
"data": [],
"index": []
}