mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-25 22:16:08 +08:00
update uni cms categories and unlock record tables
This commit is contained in:
parent
9ad8c59777
commit
78cc69c123
@ -6,9 +6,9 @@
|
||||
],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": false,
|
||||
"update": false,
|
||||
"delete": false
|
||||
"create": true,
|
||||
"update": true,
|
||||
"delete": true
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user