diff --git a/collection/opendb-sign-in/collection.json b/collection/opendb-sign-in/collection.json index 71442dd..60b0e16 100644 --- a/collection/opendb-sign-in/collection.json +++ b/collection/opendb-sign-in/collection.json @@ -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" - } - } - } -} \ No newline at end of file +{ + "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": [] +}