初始提交
This commit is contained in:
108
uniCloud-aliyun/database/CC_PartnerManage.schema.json
Normal file
108
uniCloud-aliyun/database/CC_PartnerManage.schema.json
Normal file
@@ -0,0 +1,108 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"PartnerName": {
|
||||
"bsonType": "string",
|
||||
"description": "合作商名称",
|
||||
"title": "合作商名称",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"AccountNumber": {
|
||||
"bsonType": "string",
|
||||
"description": "账号",
|
||||
"title": "账号",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"Password": {
|
||||
"bsonType": "string",
|
||||
"description": "密码,加密存储",
|
||||
"title": "密码",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
}
|
||||
},
|
||||
"Qty": {
|
||||
"bsonType": "string",
|
||||
"description": "设备数量",
|
||||
"title": "设备数量",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"ShareProportion": {
|
||||
"bsonType": "string",
|
||||
"description": "分成比例",
|
||||
"title": "分成比例",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"Contacts": {
|
||||
"bsonType": "string",
|
||||
"description": "联系人",
|
||||
"title": "联系人",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"ContactNumber": {
|
||||
"bsonType": "string",
|
||||
"description": "联系电话",
|
||||
"pattern": "^\\+?[0-9-]{3,20}$",
|
||||
"title": "联系电话",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"register_date": {
|
||||
"bsonType": "timestamp",
|
||||
"description": "创建时间",
|
||||
"title": "创建时间",
|
||||
"forceDefaultValue": {
|
||||
"$env": "now",
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"Operation": {
|
||||
"bsonType": "string",
|
||||
"description": "操作",
|
||||
"title": "操作",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user