l***@qq.com
l***@qq.com
  • 发布:2022-04-14 23:15
  • 更新:2022-04-15 10:19
  • 阅读:214

我自己写的DBschema 为什么自动生成不了?? 生成不出来内容呢

分类:uniCloud

{
"bsonType": "object",
"required": [],
"permission": {
"read": true,
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
}
},
"gouxiaofenlei": {
"bsonType": "int",
"title": "购销分类",
"description": "购销分类:0 销售 1 采购",
"order": 1,
"defaultValue": 0,
"enum": [{
"text": "销售",
"value": 0
}, {
"text": "采购",
"value": 1
}]
},
"pinzhongfenlei": {
"bsonType": "int",
"title": "品种分类",
"description": "品种分类:0 玉米 1 小麦 ",
"order": 2,
"defaultValue": 0,
"enum": [{
"text": "玉米",
"value": 0
}, {
"text": "小麦",
"value": 1
}, {
"text": "水稻",
"value": 2
}, {
"text": "黄豆",
"value": 3
}, {
"text": "花生",
"value": 4
}, {
"text": "高粱",
"value": 5
}, {
"text": "其它",
"value": 6
}]
},
"chanpinmiaoshu": {
"bsonType": "string",
"title": "产品描述",
"order": 3,
"description": "产品描述",
"trim": "both",
"component": {
"name": "textarea"
}
},
"chenghu": {
"bsonType": "string",
"title": "怎么称呼",
"description": "王老板",
"order": 4,
"trim": "both"
},
"dianhua": {
"bsonType": "string",
"title": "电话",
"order": 5,
"description": "电话",
"pattern": "^\+?[0-9-]{3,20}$",
"trim": "both"
},
"bannerfile": {
"bsonType": "file",
"fileMediaType": "image",
"title": "产品图片",
"description": "产品图片 10M以内",
"order": 6
},
"zhiding": {
"bsonType": "string",
"title": "非置顶",
"description": "非置顶",
"order": 7,
"trim": "both"
},
"shenhe": {
"bsonType": "string",
"title": "待审核",
"description": "待审核",
"order": 8,
"trim": "both"
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间",
"forceDefaultValue": {
"$env": "now"
}
}
}

2022-04-14 23:15 负责人:无 分享
已邀请:
DCloud_uniAD_HDX

DCloud_uniAD_HDX

所有字段不应该在根目录,应放到 properties 下
字段 dianhua 正则有语法错误

  • l***@qq.com (作者)

    感谢您的回复 ! 给你 100个赞

    2022-04-15 10:48

该问题目前已经被锁定, 无法添加新回复