info
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"bsonType": "object",
|
||||
"required": ["user_id", "comment_id", "create_time"],
|
||||
"permission": {
|
||||
"read": true,
|
||||
"create": "auth.uid != null",
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
"description": "文档ID,系统自动生成",
|
||||
"bsonType": "string"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
"title": "用户ID",
|
||||
"description": "关联用户表中的ID",
|
||||
"foreignKey": "uni-id-users._id",
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
}
|
||||
},
|
||||
"comment_id": {
|
||||
"bsonType": "string",
|
||||
"title": "评论ID",
|
||||
"description": "评论唯一标识符"
|
||||
},
|
||||
"create_time": {
|
||||
"bsonType": "timestamp",
|
||||
"title": "创建时间",
|
||||
"description": "评论创建时间",
|
||||
"defaultValue": {
|
||||
"$env": "now"
|
||||
}
|
||||
}
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user