{
    "name": "Location",
    "description": "A Location model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "Location"
        }
    },
    "properties": {
        "areaId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "areaId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "zoneId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "zoneId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "aisleId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "aisleId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "shelvingId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "shelvingId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "code": {
            "type": "string",
            "required": true,
            "length": 20,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "code",
                "dataType": "varchar",
                "dataLength": 20,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "label": {
            "type": "string",
            "required": true,
            "length": 20,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "label",
                "dataType": "varchar",
                "dataLength": 20,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "x": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "x",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "y": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "y",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "side": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "side",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "depth": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "depth",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "height": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "height",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "length": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "length",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "weight": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "weight",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "typeCode": {
            "type": "string",
            "required": true,
            "length": 50,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "typeCode",
                "dataType": "varchar",
                "dataLength": 50,
                "dataPrecision": null,
                "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": 11,
            "scale": 0,
            "mysql": {
                "columnName": "createdById",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "updatedById": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "updatedById",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        }
    },
    "validations": [],
    "relations": {
        "area": {
            "type": "belongsTo",
            "model": "Area",
            "foreignKey": "areaId"
        },
        "zone": {
            "type": "belongsTo",
            "model": "Zone",
            "foreignKey": "zoneId"
        },
        "aisle": {
            "type": "belongsTo",
            "model": "Aisle",
            "foreignKey": "aisleId"
        },
        "shelving": {
            "type": "belongsTo",
            "model": "Shelving",
            "foreignKey": "shelvingId"
        },
        "containers": {
            "type": "hasMany",
            "model": "Container",
            "foreignKey": "locationId"
        },
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
