opendb-sms-log.schema.json 1.2 KB
Newer Older
M
MicroMilo 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
{
	"bsonType": "object",
	"required": [],
	"permission": {
		"read": false,
		"create": false,
		"update": false,
		"delete": false
	},
	"properties": {
		"_id": {
			"description": "ID,系统自动生成"
		},
    "task_id": {
      "bsonType": "string",
      "description": "任务ID",
      "foreignKey": "batch-sms-task._id"
    },
    "uid": {
      "bsonType": "string",
      "description": "用户ID",
      "foreignKey": "uni-id-users._id"
    },
    "mobile": {
      "bsonType": "int",
      "description": "手机号"
    },
    "var_data": {
        "bsonType": "object",
        "description": "变量数据"
    },
    "status": {
      "bsonType": "int",
      "description": "发送状态",
      "defaultValue": 0,
      "enum": [{
      	"text": "未发送",
      	"value": 0
      }, {
      	"text": "已发送",
      	"value": 1
      }, {
      	"text": "发送失败",
      	"value": 2
      }]
    },
    "reason": {
      "bsonType": "string",
      "description": "发送失败原因"
    },
    "send_date": {
      "bsonType": "timestamp",
      "description": "发送时间"
    },
    "ccreate_date": {
      "bsonType": "timestamp",
      "description": "创建时间",
      "forceDefaultValue": {
      	"$env": "now"
      }
    }
	}
}