更新签到表结构

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

View File

@ -1,4 +1,5 @@
{
"schema": {
"bsonType": "object",
"required": [],
"permission": {
@ -11,30 +12,32 @@
"_id": {
"description": "ID系统自动生成"
},
"user_id":{
"forceDefaultValue":{
"$env":"uid"
"user_id": {
"forceDefaultValue": {
"$env": "uid"
}
},
"date":{
"bsonType":"timestamp",
"description":"签到的日期时间戳",
"permission":{
"write":false
"date": {
"bsonType": "timestamp",
"description": "签到的日期时间戳",
"permission": {
"write": false
}
},
"create_date":{
"bsonType":"timestamp",
"description":"签到的时间戳",
"forceDefaultValue":{
"$env":"now"
"create_date": {
"bsonType": "timestamp",
"description": "签到的时间戳",
"forceDefaultValue": {
"$env": "now"
}
},
"ip":{
"bsonType":"string",
"forceDefaultValue":{
"$env":"clientIP"
"ip": {
"bsonType": "string",
"forceDefaultValue": {
"$env": "clientIP"
}
}
}
},
"index": []
}