添加 uni-cms-article 页面及数据库配置

This commit is contained in:
root
2026-08-28 13:56:52 +08:00
parent 7257f09df0
commit a68bf43112
7 changed files with 402 additions and 0 deletions
@@ -0,0 +1,23 @@
{
"uni-cms-unlock-record": {
"data": [],
"index": [
{
"IndexName": "unique_article_trans_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "unique_id",
"Direction": "1"
},{
"Name": "article_id",
"Direction": "1"
},{
"Name": "trans_id",
"Direction": "1"
}],
"MgoIsUnique": false
}
}
]
}
}
@@ -0,0 +1,31 @@
{
"bsonType": "object",
"required": [
"content",
"count"
],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"content": {
"bsonType": "string",
"description": "搜索内容"
},
"count": {
"bsonType": "int",
"description": "搜索次数"
},
"create_date": {
"bsonType": "timestamp",
"description": "统计时间"
}
},
"version": "0.0.1"
}
@@ -0,0 +1,45 @@
{
"bsonType": "object",
"required": [
"content"
],
"permission": {
"read": false,
"create": true,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID,系统自动生成"
},
"user_id": {
"bsonType": "string",
"description": "搜索人id,参考uni-id-users表"
},
"device_id": {
"bsonType": "string",
"description": "设备id"
},
"platform": {
"bsonType": "string",
"description": "设备平台,如:mp-weixin、app-plus等"
},
"content": {
"bsonType": "string",
"description": "搜索内容"
},
"ip": {
"bsonType": "string",
"description": "客户端IP地址",
"forceDefaultValue": {
"$env": "clientIP"
}
},
"create_date": {
"bsonType": "timestamp",
"description": "统计时间"
}
},
"version": "0.0.1"
}