update uni cms categories and unlock record tables

This commit is contained in:
chenruilong 2023-04-11 23:04:25 +08:00
parent 9ad8c59777
commit 78cc69c123
2 changed files with 15 additions and 15 deletions

View File

@ -6,9 +6,9 @@
],
"permission": {
"read": true,
"create": false,
"update": false,
"delete": false
"create": true,
"update": true,
"delete": true
},
"properties": {
"_id": {

View File

@ -7,22 +7,22 @@
"content_id"
],
"permission": {
"read": "doc.user_id == auth.uid",
"create": "auth.uid != null",
"update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid"
"read": true,
"create": true,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "存储文档 ID用户 ID系统自动生成"
},
"user_id": {
"unique_id": {
"bsonType": "string",
"description": "用户ID 参考`uni-id-users` 表",
"foreignKey": "uni-id-users._id",
"defaultValue": {
"$env": "uid"
}
"description": "用于标识观看广告的唯一标识"
},
"unique_type": {
"bsonType": "string",
"description": "观看广告的唯一标识类型user 用户device 设备"
},
"trans_id": {
"bsonType": "string",
@ -49,10 +49,10 @@
}
},
"index": [{
"IndexName": "user_article_trans_",
"IndexName": "unique_article_trans_",
"MgoKeySchema": {
"MgoIndexKeys": [{
"Name": "user_id",
"Name": "unique_id",
"Direction": "1"
},{
"Name": "article_id",