This commit is contained in:
2025-03-20 19:32:25 +08:00
parent ebc8c7bb26
commit 8e35b74d86
17 changed files with 3170 additions and 1840 deletions
@@ -2,7 +2,7 @@
"bsonType": "object",
"required": ["user_id", "article_id", "last_view_time", "first_view_time"],
"permission": {
"read": "doc.user_id == auth.uid || 'admin' in auth.role", // 用户仅查看自己记录
"read": true, // 用户仅查看自己记录
"create": "auth.uid != null", // 登录用户自动记录
"update": "false", // 日志不可修改
"delete": "'admin' in auth.role" // 仅管理员可删除