{ "bsonType": "object", "required": [], "properties": { "_id": { "description": "用户ID(与 uni-id-users._id 对应)", "bsonType": "string" }, "balance": { "bsonType": "number", "title": "积分余额", "description": "当前可用积分", "defaultValue": 0, "minimum": 0 }, "total_earned": { "bsonType": "number", "title": "累计获得", "description": "累计获得的积分总数", "defaultValue": 0 }, "total_spent": { "bsonType": "number", "title": "累计消耗", "description": "累计消耗的积分总数", "defaultValue": 0 }, "gift": { "bsonType": "number", "title": "赠送积分", "description": "新用户赠送的积分数量", "defaultValue": 500 }, "update_time": { "bsonType": "date", "title": "更新时间", "description": "最后更新时间" } } }