{
    "name": "Message",
    "description": "A Message model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "Message"
        }
    },
    "properties": {
        "device": {
            "type": "string",
            "required": true,
            "length": 20,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "device",
                "dataType": "varchar",
                "dataLength": 20,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "date": {
            "type": "date",
            "required": false,
            "length": null,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "date",
                "dataType": "datetime",
                "dataLength": null,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "type": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 12,
            "scale": null,
            "mysql": {
                "columnName": "type",
                "dataType": "float",
                "dataLength": null,
                "dataPrecision": 12,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "value": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 12,
            "scale": null,
            "mysql": {
                "columnName": "value",
                "dataType": "float",
                "dataLength": null,
                "dataPrecision": 12,
                "dataScale": null,
                "nullable": "N"
            }
        }
    },
    "validations": [],
    "relations": {
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
