diff --git a/collection/uni-cms-categories/collection.json b/collection/uni-cms-categories/collection.json index 8318228..59da7fa 100644 --- a/collection/uni-cms-categories/collection.json +++ b/collection/uni-cms-categories/collection.json @@ -6,9 +6,9 @@ ], "permission": { "read": true, - "create": true, - "update": true, - "delete": true + "create": false, + "update": false, + "delete": false }, "properties": { "_id": { @@ -36,12 +36,33 @@ "sort": { "bsonType": "int", "description": "类别显示顺序", - "label": "排序" + "label": "排序", + "defaultValue": 0 }, "article_count": { "bsonType": "int", "description": "该类别下文章数量" }, + "image_count": { + "bsonType": "int", + "description": "该类别下图片数量" + }, + "video_count": { + "bsonType": "int", + "description": "该类别下视频数量" + }, + "type": { + "bsonType": "string", + "title": "内容类型", + "description": "内容类型,article 文章 image 图片 video 视频", + "label": "内容id", + "trim": "both", + "enum": [ + "article", + "image", + "video" + ] + }, "create_date": { "bsonType": "timestamp", "description": "创建时间", diff --git a/collection/uni-cms-categories/package.json b/collection/uni-cms-categories/package.json index 2e63d88..9c61dc0 100644 --- a/collection/uni-cms-categories/package.json +++ b/collection/uni-cms-categories/package.json @@ -2,9 +2,9 @@ "name": "@opendb/uni-cms-categories", "version": "0.0.1", "description": "uni-cms-categories", - "keywords": ["文章&评论", "文章类别", "uni-CMS", "CMS"], + "keywords": ["文章&评论", "文章、图片、视频类别", "uni-CMS", "CMS"], "opendb": { - "title": "文章类别表", + "title": "CMS内容类别表", "type": "collection", "contributors": [ { diff --git a/collection/uni-cms-unlock-record/collection.json b/collection/uni-cms-unlock-record/collection.json index 24bbd7c..826c126 100644 --- a/collection/uni-cms-unlock-record/collection.json +++ b/collection/uni-cms-unlock-record/collection.json @@ -8,7 +8,7 @@ ], "permission": { "read": true, - "create": true, + "create": false, "update": false, "delete": false }, @@ -34,10 +34,22 @@ "content_id": { "bsonType": "string", "title": "内容id", - "description": "内容(文章)ID", + "description": "内容(文章、图片、视频)ID", "label": "内容id", "trim": "both" }, + "content_type": { + "bsonType": "string", + "title": "内容类型", + "description": "内容类型,article 文章 image 图片 video 视频", + "label": "内容id", + "trim": "both", + "enum": [ + "article", + "image", + "video" + ] + }, "create_date": { "bsonType": "timestamp", "title": "创建时间", @@ -45,6 +57,18 @@ "defaultValue": { "$env": "now" } + }, + "adpid": { + "bsonType": "string", + "description": "广告id" + }, + "provider": { + "bsonType": "string", + "description": "广告供应商" + }, + "platform": { + "bsonType": "string", + "description": "客户端平台" } } }, @@ -54,10 +78,10 @@ "MgoIndexKeys": [{ "Name": "unique_id", "Direction": "1" - },{ + }, { "Name": "article_id", "Direction": "1" - },{ + }, { "Name": "trans_id", "Direction": "1" }], diff --git a/collection/uni-cms-unlock-record/package.json b/collection/uni-cms-unlock-record/package.json index 5e2a6e9..1712747 100644 --- a/collection/uni-cms-unlock-record/package.json +++ b/collection/uni-cms-unlock-record/package.json @@ -4,7 +4,7 @@ "description": "uni-cms-unlock-record", "keywords": ["解锁记录", "内容解锁表", "uni-CMS", "CMS"], "opendb": { - "title": "文章解锁记录表", + "title": "CMS内容解锁记录表", "type": "collection", "contributors": [ {