mirror of
https://gitee.com/dcloud/opendb.git
synced 2025-01-13 23:32:12 +08:00
update uni cms categories and unlock record tables
This commit is contained in:
parent
9ad8c59777
commit
78cc69c123
@ -6,9 +6,9 @@
|
|||||||
],
|
],
|
||||||
"permission": {
|
"permission": {
|
||||||
"read": true,
|
"read": true,
|
||||||
"create": false,
|
"create": true,
|
||||||
"update": false,
|
"update": true,
|
||||||
"delete": false
|
"delete": true
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"_id": {
|
"_id": {
|
||||||
|
@ -7,22 +7,22 @@
|
|||||||
"content_id"
|
"content_id"
|
||||||
],
|
],
|
||||||
"permission": {
|
"permission": {
|
||||||
"read": "doc.user_id == auth.uid",
|
"read": true,
|
||||||
"create": "auth.uid != null",
|
"create": true,
|
||||||
"update": "doc.user_id == auth.uid",
|
"update": false,
|
||||||
"delete": "doc.user_id == auth.uid"
|
"delete": false
|
||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"_id": {
|
"_id": {
|
||||||
"description": "存储文档 ID(用户 ID),系统自动生成"
|
"description": "存储文档 ID(用户 ID),系统自动生成"
|
||||||
},
|
},
|
||||||
"user_id": {
|
"unique_id": {
|
||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
"description": "用户ID, 参考`uni-id-users` 表",
|
"description": "用于标识观看广告的唯一标识"
|
||||||
"foreignKey": "uni-id-users._id",
|
},
|
||||||
"defaultValue": {
|
"unique_type": {
|
||||||
"$env": "uid"
|
"bsonType": "string",
|
||||||
}
|
"description": "观看广告的唯一标识类型;user 用户;device 设备"
|
||||||
},
|
},
|
||||||
"trans_id": {
|
"trans_id": {
|
||||||
"bsonType": "string",
|
"bsonType": "string",
|
||||||
@ -49,10 +49,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"index": [{
|
"index": [{
|
||||||
"IndexName": "user_article_trans_",
|
"IndexName": "unique_article_trans_",
|
||||||
"MgoKeySchema": {
|
"MgoKeySchema": {
|
||||||
"MgoIndexKeys": [{
|
"MgoIndexKeys": [{
|
||||||
"Name": "user_id",
|
"Name": "unique_id",
|
||||||
"Direction": "1"
|
"Direction": "1"
|
||||||
},{
|
},{
|
||||||
"Name": "article_id",
|
"Name": "article_id",
|
||||||
|
Loading…
Reference in New Issue
Block a user