{
    "name": "Client",
    "description": "A Client model",
    "base": "PersistedModel",
    "options": {
        "idInjection": false,
        "mysql": {
          "table": "Client"
        }
    },
    "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"
            }
        },
        "ownerId": {
            "type": "number",
            "required": false,
            "length": null,
            "precision": 10,
            "scale": 0,
            "mysql": {
                "columnName": "ownerId",
                "dataType": "int",
                "dataLength": null,
                "dataPrecision": 10,
                "dataScale": 0,
                "nullable": "Y"
            }
        },
        "code": {
            "type": "string",
            "required": true,
            "length": 12,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "code",
                "dataType": "varchar",
                "dataLength": 12,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "description": {
            "type": "string",
            "required": false,
            "length": 80,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "description",
                "dataType": "varchar",
                "dataLength": 80,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "Y"
            }
        },
        "clientTypeId": {
            "type": "string",
            "required": true,
            "length": 12,
            "precision": null,
            "scale": null,
            "mysql": {
                "columnName": "clientTypeId",
                "dataType": "varchar",
                "dataLength": 12,
                "dataPrecision": null,
                "dataScale": null,
                "nullable": "N"
            }
        },
        "active": {
            "type": "boolean",
            "required": true,
            "length": null,
            "precision": 1,
            "scale": 0,
            "mysql": {
                "columnName": "active",
                "dataType": "tinyint",
                "dataLength": null,
                "dataPrecision": 1,
                "dataScale": 0,
                "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": {
        "organization": {
            "type": "belongsTo",
            "model": "Organization",
            "foreignKey": "organizationId"
        },
        "owner": {
            "type": "belongsTo",
            "model": "Owner",
            "foreignKey": "ownerId"
        },
        "clientType": {
            "type": "belongsTo",
            "model": "ClientType",
            "foreignKey": "clientTypeId"
        },
        "createdBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "createdById"
        },
        "updatedBy": {
            "type": "belongsTo",
            "model": "Customer",
            "foreignKey": "updatedById"
        }
    },
    "acls": [],
    "methods": {}
}
