{
    "name": "Stock",
    "description": "A Stock model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "Stock"
        }
    },
    "properties": {
        "areaId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "areaId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "containerId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "containerId",
                "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"
            }
        },
        "clientId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "clientId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "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"
            }
        },
        "productPackingId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "productPackingId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "quantity": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 12,
            "scale": null,
            "mysql": {
                "columnName": "quantity",
                "dataType": "float",
                "dataLength": null,
                "dataPrecision": 12,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "statusCode": {
            "type": "string",
            "required": true,
            "length": 50,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "statusCode",
                "dataType": "varchar",
                "dataLength": 50,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "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": {
        "area": {
            "type": "belongsTo",
            "model": "Area",
            "foreignKey": "areaId"
        },
        "container": {
            "type": "belongsTo",
            "model": "Container",
            "foreignKey": "containerId"
        },
        "client": {
            "type": "belongsTo",
            "model": "Client",
            "foreignKey": "clientId"
        },
        "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": {}
}
