chore: add invite_time to uni-id-users

This commit is contained in:
wangyaqi 2021-03-31 10:36:01 +08:00
parent 426f93d6a9
commit c66162b79f

View File

@ -10,13 +10,13 @@
"bsonType": "string",
"title": "用户名",
"description": "用户名,不允许重复",
"trim":"both"
"trim": "both"
},
"password": {
"bsonType": "password",
"title": "密码",
"description": "密码,加密存储",
"trim":"both"
"trim": "both"
},
"password_secret_version": {
"bsonType": "int",
@ -27,100 +27,115 @@
"bsonType": "string",
"title": "昵称",
"description": "用户昵称",
"trim":"both"
"trim": "both"
},
"gender": {
"bsonType": "int",
"title": "性别",
"description": "用户性别0 未知 1 男性 2 女性",
"defaultValue": 0,
"enum": [{
"text": "未知",
"value": 0
}, {
"text": "男",
"value": 1
}, {
"text": "女",
"value": 2
}]
"enum": [
{
"text": "未知",
"value": 0
},
{
"text": "男",
"value": 1
},
{
"text": "女",
"value": 2
}
]
},
"status": {
"bsonType": "int",
"description": "用户状态0 正常 1 禁用 2 审核中 3 审核拒绝",
"title": "用户状态",
"defaultValue": 0,
"enum": [{
"text": "正常",
"value": 0
}, {
"text": "禁用",
"value": 1
}, {
"text": "审核中",
"value": 2
}, {
"text": "审核拒绝",
"value": 3
}]
"enum": [
{
"text": "正常",
"value": 0
},
{
"text": "禁用",
"value": 1
},
{
"text": "审核中",
"value": 2
},
{
"text": "审核拒绝",
"value": 3
}
]
},
"mobile": {
"bsonType": "string",
"title": "手机号码",
"description": "手机号码",
"pattern": "^\\+?[0-9-]{3,20}$",
"trim":"both"
"trim": "both"
},
"mobile_confirmed": {
"bsonType": "int",
"description": "手机号验证状态0 未验证 1 已验证",
"title": "手机号验证状态",
"defaultValue": 0,
"enum": [{
"text": "未验证",
"value": 0
}, {
"text": "已验证",
"value": 1
}]
"enum": [
{
"text": "未验证",
"value": 0
},
{
"text": "已验证",
"value": 1
}
]
},
"email": {
"bsonType": "string",
"format": "email",
"title": "邮箱",
"description": "邮箱地址",
"trim":"both"
"trim": "both"
},
"email_confirmed": {
"bsonType": "int",
"description": "邮箱验证状态0 未验证 1 已验证",
"title": "邮箱验证状态",
"defaultValue": 0,
"enum": [{
"text": "未验证",
"value": 0
}, {
"text": "已验证",
"value": 1
}]
"enum": [
{
"text": "未验证",
"value": 0
},
{
"text": "已验证",
"value": 1
}
]
},
"avatar": {
"bsonType": "string",
"title": "头像地址",
"description": "头像地址",
"trim":"both"
"trim": "both"
},
"department_id": {
"bsonType": "array",
"description": "部门ID",
"title": "部门",
"enumType": "tree",
"enum": {
"collection": "opendb-department",
"orderby": "name asc",
"field": "_id as value, name as text"
}
},
"department_id": {
"bsonType": "array",
"description": "部门ID",
"title": "部门",
"enumType": "tree",
"enum": {
"collection": "opendb-department",
"orderby": "name asc",
"field": "_id as value, name as text"
}
},
"role": {
"bsonType": "array",
"title": "角色",
@ -164,7 +179,7 @@
"bsonType": "string",
"title": "备注",
"description": "备注",
"trim":"both"
"trim": "both"
},
"realname_auth": {
"bsonType": "object",
@ -257,7 +272,11 @@
"inviter_uid": {
"bsonType": "array",
"description": "用户全部上级邀请者",
"trim":"both"
"trim": "both"
},
"invite_time": {
"bsonType": "timestamp",
"description": "受邀时间"
},
"my_invite_code": {
"bsonType": "string",
@ -266,135 +285,162 @@
}
},
"data": [],
"index": [{
"index": [
{
"IndexName": "username",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "username",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "username",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "mobile",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "mobile",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "mobile",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "email",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "email",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "email",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "wx_openid.app-plus",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "wx_openid.app-plus",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "wx_openid.app-plus",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "wx_openid.mp-weixin",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "wx_openid.mp-weixin",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "wx_openid.mp-weixin",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "wx_unionid",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "wx_unionid",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "wx_unionid",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "ali_openid",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "ali_openid",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "ali_openid",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "apple_openid",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "apple_openid",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "apple_openid",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "my_invite_code",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "my_invite_code",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "my_invite_code",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "inviter_uid",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "inviter_uid",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "inviter_uid",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "invite_time",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "invite_time",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "invite_time",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "role",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "role",
"Direction": "1"
}],
"MgoIndexKeys": [
{
"Name": "role",
"Direction": "1"
}
],
"MgoIsUnique": false
}
},
{
"IndexName": "department",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "department_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
{
"IndexName": "department",
"MgoKeySchema": {
"MgoIndexKeys": [
{
"Name": "department_id",
"Direction": "1"
}
],
"MgoIsUnique": false
}
}
]
}
}