opendb/collection/opendb-mall-goods-visite/collection.json

38 lines
855 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 文档教程: https://uniapp.dcloud.net.cn/uniCloud/schema
{
"bsonType": "object",
"required": [],
"permission": {
"read": "doc.user_id == auth.uid",
"create": "doc.user_id == auth.uid",
"update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid"
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"goods_id": {
"bsonType": "string",
"description": "商品 id参考 opendb-mall-goods 表",
"foreignKey": "opendb-mall-goods._id"
},
"user_id": {
"bsonType": "string",
"description": "uid参考 uni-id-users 表",
"foreignKey": "uni-id-users._id",
"defaultValue": {
"$env": "uid"
}
},
"create_date": {
"bsonType": "timestamp",
"description": "创建时间"
},
"update_date": {
"bsonType": "timestamp",
"description": "修改时间"
}
}
}