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

105 lines
2.2 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": {
"description": "创建者的user_id创建者必然是用户",
"bsonType": "string"
},
"owner_type": {
"bsonType": "int",
"description": "当前应用归属者类型1个人2企业"
},
"owner_id": {
"description": "当前应用归属者的id所有者可能是个人也可以能是公司",
"bsonType": "string"
},
"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
}
}
]
}