opendb/collection/opendb-sign-in/collection.json
2022-02-22 16:45:54 +08:00

44 lines
918 B
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"schema": {
"bsonType": "object",
"required": [],
"permission": {
"read": "auth.uid == doc.user_id",
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
"description": "ID系统自动生成"
},
"user_id": {
"forceDefaultValue": {
"$env": "uid"
}
},
"date": {
"bsonType": "timestamp",
"description": "签到的日期时间戳",
"permission": {
"write": false
}
},
"create_date": {
"bsonType": "timestamp",
"description": "签到的时间戳",
"forceDefaultValue": {
"$env": "now"
}
},
"ip": {
"bsonType": "string",
"forceDefaultValue": {
"$env": "clientIP"
}
}
}
},
"index": []
}