初始提交
This commit is contained in:
107
uniCloud-aliyun/database/CC_CommodityManagement.schema.json
Normal file
107
uniCloud-aliyun/database/CC_CommodityManagement.schema.json
Normal file
@@ -0,0 +1,107 @@
|
||||
// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": [],
|
||||
"permission": {
|
||||
"read": false,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "ID,系统自动生成"
|
||||
},
|
||||
"ItemNo": {
|
||||
"bsonType": "string",
|
||||
"description": "商品编号",
|
||||
"title": "商品编号",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"TradeName": {
|
||||
"bsonType": "string",
|
||||
"description": "商品名称",
|
||||
"title": "商品名称",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"ProductPicture": {
|
||||
"bsonType": "file",
|
||||
"description": "商品图片",
|
||||
"title": "商品图片",
|
||||
"trim": "both",
|
||||
"fileMediaType": "image", // 可选值 all|image|video 默认值为all,表示所有文件,image表示图片类型文件,video表示视频类型文件
|
||||
"fileExtName": "jpg,png", // 扩展名过滤,多个用 , 分割
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"Brand": {
|
||||
"bsonType": "string",
|
||||
"description": "品牌",
|
||||
"title": "品牌",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"Specifications": {
|
||||
"bsonType": "string",
|
||||
"description": "规格",
|
||||
"title": "规格",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"CommodityPrice": {
|
||||
"bsonType": "int",
|
||||
"description": "商品价格",
|
||||
"title": "商品价格",
|
||||
"trim": "both",
|
||||
"permission": {
|
||||
"write": false,
|
||||
"read": "doc._id == auth.uid"
|
||||
}
|
||||
},
|
||||
"ProductType": {
|
||||
"bsonType": "string",
|
||||
"description": "商品类型",
|
||||
"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