opendb/collection/opendb-app-list/collection.json

113 lines
2.5 KiB
JSON
Raw Normal View History

{
"schema": {
"bsonType": "object",
"required": [
"appid",
"name"
],
"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
}
}
},
"creator_uid": {
2022-05-07 18:12:49 +08:00
"description": "创建者的user_id创建者必然是用户不随应用转让而改变",
"bsonType": "string"
},
"owner_type": {
"bsonType": "int",
2022-05-07 18:12:49 +08:00
"description": "应用当前归属者类型1个人2企业"
},
"owner_id": {
2022-05-07 18:12:49 +08:00
"bsonType": "string",
"description": "应用当前归属者的iduser_id or enterprise_id"
},
"managers":{
"bsonType":"array",
"description":"应用管理员ID列表"
},
"members":{
"bsonType":"array",
"description":"团队成员ID列表"
},
"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
}
}
]
}