更新签到表结构

This commit is contained in:
linju-json 2022-02-22 16:45:54 +08:00
parent 4f6bd67e47
commit 60c1835222

View File

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