2021-03-19 20:27:18 +08:00
|
|
|
|
{
|
|
|
|
|
"schema": {
|
|
|
|
|
"bsonType": "object",
|
|
|
|
|
"required": [
|
|
|
|
|
"appid",
|
2022-05-07 17:52:54 +08:00
|
|
|
|
"name"
|
2021-03-19 20:27:18 +08:00
|
|
|
|
],
|
|
|
|
|
"permission": {
|
|
|
|
|
"read": false,
|
|
|
|
|
"create": false,
|
|
|
|
|
"update": false,
|
|
|
|
|
"delete": false
|
|
|
|
|
},
|
|
|
|
|
"properties": {
|
|
|
|
|
"_id": {
|
|
|
|
|
"description": "ID,系统自动生成"
|
|
|
|
|
},
|
|
|
|
|
"appid": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "应用的AppID",
|
|
|
|
|
"label": "AppID",
|
|
|
|
|
"componentForEdit": {
|
|
|
|
|
"name": "uni-easyinput",
|
|
|
|
|
"props": {
|
|
|
|
|
"disabled": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "应用名称",
|
|
|
|
|
"label": "应用名称",
|
|
|
|
|
"componentForEdit": {
|
|
|
|
|
"name": "uni-easyinput",
|
|
|
|
|
"props": {
|
|
|
|
|
"disabled": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"description": {
|
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "应用描述",
|
|
|
|
|
"label": "应用描述",
|
|
|
|
|
"componentForEdit": {
|
|
|
|
|
"name": "textarea"
|
|
|
|
|
},
|
|
|
|
|
"componentForShow": {
|
|
|
|
|
"name": "textarea",
|
|
|
|
|
"props": {
|
|
|
|
|
"disabled": true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-05-07 17:51:00 +08:00
|
|
|
|
"creator_uid": {
|
2022-05-07 18:12:49 +08:00
|
|
|
|
"description": "创建者的user_id,创建者必然是用户,不随应用转让而改变",
|
2022-05-07 17:51:00 +08:00
|
|
|
|
"bsonType": "string"
|
|
|
|
|
},
|
|
|
|
|
"owner_type": {
|
|
|
|
|
"bsonType": "int",
|
2022-05-07 18:12:49 +08:00
|
|
|
|
"description": "应用当前归属者类型,1:个人,2:企业"
|
2022-05-07 17:51:00 +08:00
|
|
|
|
},
|
|
|
|
|
"owner_id": {
|
2022-05-07 18:12:49 +08:00
|
|
|
|
"bsonType": "string",
|
|
|
|
|
"description": "应用当前归属者的id,user_id or enterprise_id"
|
|
|
|
|
},
|
|
|
|
|
"managers":{
|
|
|
|
|
"bsonType":"array",
|
|
|
|
|
"description":"应用管理员ID列表"
|
|
|
|
|
},
|
|
|
|
|
"members":{
|
|
|
|
|
"bsonType":"array",
|
|
|
|
|
"description":"团队成员ID列表"
|
2022-05-07 17:51:00 +08:00
|
|
|
|
},
|
2021-03-19 20:27:18 +08:00
|
|
|
|
"create_date": {
|
|
|
|
|
"bsonType": "timestamp",
|
|
|
|
|
"label": "创建时间",
|
|
|
|
|
"forceDefaultValue": {
|
|
|
|
|
"$env": "now"
|
|
|
|
|
},
|
|
|
|
|
"componentForEdit": {
|
|
|
|
|
"name": "uni-dateformat"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"index": [
|
|
|
|
|
{
|
|
|
|
|
"IndexName": "appid",
|
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "appid",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"MgoIsUnique": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"IndexName": "name",
|
|
|
|
|
"MgoKeySchema": {
|
|
|
|
|
"MgoIndexKeys": [
|
|
|
|
|
{
|
|
|
|
|
"Name": "name",
|
|
|
|
|
"Direction": "1"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"MgoIsUnique": false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-05-07 17:52:54 +08:00
|
|
|
|
}
|