更新签到表结构

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",
"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"
}
}
}
}
{
"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": []
}