{
    "name": "ExpeditionLine",
    "description": "A Expedition Line model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "ExpeditionLine"
        }
    },
    "properties": {
        "expeditionId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "expeditionId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "ownerId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "ownerId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "line": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "line",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "productId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "productId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "productPackingId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "productPackingId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "lot": {
            "type": "string",
            "required": false,
            "length": 50,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "lot",
                "dataType": "varchar",
                "dataLength": 50,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "serialNumber": {
            "type": "string",
            "required": false,
            "length": 50,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "serialNumber",
                "dataType": "varchar",
                "dataLength": 50,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "expiredDate": {
            "type": "date",
            "required": false,
            "length": null,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "expiredDate",
                "dataType": "date",
                "dataLength": null,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "weight": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 12,
            "scale": null,
            "mysql": {
                "columnName": "weight",
                "dataType": "float",
                "dataLength": null,
                "dataPrecision": 12,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "quantity": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 12,
            "scale": null,
            "mysql": {
                "columnName": "quantity",
                "dataType": "float",
                "dataLength": null,
                "dataPrecision": 12,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "stockStatusCode": {
            "type": "string",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "stockStatusCode",
                "dataType": "string",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "creationDate": {
            "type": "date",
            "required": false,
            "length": null,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "creationDate",
                "dataType": "datetime",
                "dataLength": null,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "updatedDate": {
            "type": "date",
            "required": false,
            "length": null,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "updatedDate",
                "dataType": "datetime",
                "dataLength": null,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "createdById": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "createdById",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "updatedById": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "updatedById",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        }
    },
    "relations": {
        "expedition": {
            "type": "belongsTo",
            "model": "Expedition",
            "foreignKey": "expeditionId"
        },
        "owner": {
            "type": "belongsTo",
            "model": "Owner",
            "foreignKey": "ownerId"
        },
        "product": {
            "type": "belongsTo",
            "model": "Product",
            "foreignKey": "productId"
        },
        "productPacking": {
            "type": "belongsTo",
            "model": "ProductPacking",
            "foreignKey": "productPackingId"
        },
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
