opendb/collection/opendb-news-article-read/collection.json

48 lines
989 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": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"article_id": {
"bsonType": "string",
"description": "文章IDopendb-news-posts 表中的`_id`字段",
"foreignKey": "opendb-news-articles._id"
},
"user_id": {
"bsonType": "string",
"description": "用户ID参考`uni-id-users` 表",
"forceDefaultValue": {
"$env": "uid"
},
"foreignKey": "uni-id-users._id"
},
"read_ip": {
"bsonType": "string",
"description": "浏览时 IP 地址",
"forceDefaultValue": {
"$env": "clientIP"
}
},
"getdouble": {
"bsonType": "bool",
"description": "是否获得双倍"
},
"create_date": {
"bsonType": "timestamp",
"description": "浏览时间",
"forceDefaultValue": {
"$env": "now"
}
}
}
}