94 lines
1.8 KiB
JSON
94 lines
1.8 KiB
JSON
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||
{
|
||
"bsonType": "object",
|
||
"required": [],
|
||
"permission": {
|
||
"read": true,
|
||
"create": true,
|
||
"update": true,
|
||
"delete": true
|
||
},
|
||
"properties": {
|
||
"_id": {
|
||
"description": "ID,系统自动生成"
|
||
},
|
||
"PointName": {
|
||
"bsonType": "string",
|
||
"description": "点位名称",
|
||
"title": "点位名称",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Region": {
|
||
"bsonType": "string",
|
||
"description": "所在区域",
|
||
"title": "所在区域",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"ApplicationType": {
|
||
"bsonType": "string",
|
||
"description": "应用类型",
|
||
"title": "应用类型",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Partner": {
|
||
"bsonType": "string",
|
||
"description": "合作商",
|
||
"title": "合作商",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Address": {
|
||
"bsonType": "string",
|
||
"description": "所在地址",
|
||
"title": "所在地址",
|
||
"trim": "both",
|
||
"enum": {
|
||
"collection": "opendb-city-china",
|
||
"field": "code as value,name as text"
|
||
},
|
||
"foreignKey": "opendb-city-china.code",
|
||
"enumType": "tree",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"DetailedAddress": {
|
||
"bsonType": "string",
|
||
"description": "详细地址",
|
||
"title": "详细地址",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
},
|
||
"Operation": {
|
||
"bsonType": "string",
|
||
"description": "操作",
|
||
"title": "操作",
|
||
"trim": "both",
|
||
"permission": {
|
||
"write": false,
|
||
"read": "doc._id == auth.uid"
|
||
}
|
||
}
|
||
|
||
}
|
||
}
|