{
    "name": "SaleTracking",
    "base": "VnModel",
    "options": {
        "mysql": {
            "table": "saleTracking"
        }
    },
    "properties": {
        "id": {
            "id": true,
            "type": "number",
            "forceId": false
        },
        "saleFk": {
            "type": "number"
        },
        "stateFk": {
            "type": "number"
        },
        "isChecked": {
            "type": "boolean"
        },
        "created": {
            "type": "date"
        },
        "originalQuantity": {
            "type": "number"
        }
    },
    "relations": {
        "sale": {
            "type": "belongsTo",
            "model": "Sale",
            "foreignKey": "saleFk"
        },
        "worker": {
            "type": "belongsTo",
            "model": "Worker",
            "foreignKey": "workerFk"
        }
    }
}