{
    "name": "Container",
    "description": "A Container model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "Container"
        }
    },
    "properties": {
        "locationId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "locationId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "label": {
            "type": "string",
            "required": true,
            "length": 80,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "label",
                "dataType": "varchar",
                "dataLength": 80,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "parentContainerId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "parentContainerId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "containerTypeId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 11,
            "scale": 0,
            "mysql": {
                "columnName": "containerTypeId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 11,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "note": {
            "type": "string",
            "required": false,
            "length": 80,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "note",
                "dataType": "varchar",
                "dataLength": 80,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "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"
            }
        }
    },
    "validations": [],
    "relations": {
        "location": {
            "type": "belongsTo",
            "model": "Location",
            "foreignKey": "locationId"
        },
        "parentContainer": {
            "type": "belongsTo",
            "model": "Container",
            "foreignKey": "parentContainerId"
        },
        "containerType": {
            "type": "belongsTo",
            "model": "ContainerType",
            "foreignKey": "containerTypeId"
        },
        "stocks": {
            "type": "hasMany",
            "model": "Stock",
            "foreignKey": "containerId"
        },
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
