{
    "name": "ProductUnit",
    "description": "A Product unit model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
            "table": "ProductUnit"
        }
    },
    "properties": {
        "organizationId": {
            "type": "number",
            "required": true,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "organizationId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "N"
            }
        },
        "name": {
            "type": "string",
            "required": false,
            "length": 90,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "name",
                "dataType": "varchar",
                "dataLength": 90,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        }
    },
    "validations": [],
    "relations": {
        "organization": {
            "type": "belongsTo",
            "model": "Organization",
            "foreignKey": "organizationId"
        },
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
