Skip to content

EspoCRM – Open Source CRM Application

2.8 KB
Raw Blame
{
    "fields": {
        "name": {
            "type": "varchar",
            "maxLength": 100,
            "required": true,
            "index": true,
            "audited": true
        },
        "status": {
            "type": "enum",
            "options": [
                "Active",
                "Inactive"
            ],
            "default": "Active",
            "maxLength": 8,
            "style": {
                "Inactive": "info"
            },
            "duplicateIgnore": true
        },
        "clientType": {
            "type": "enum",
            "options": [
                "Confidential",
                "Public"
            ],
            "default": "Confidential",
            "maxLength": 12,
            "readOnlyAfterCreate": true,
            "audited": true
        },
        "identifier": {
            "type": "varchar",
            "readOnly": true,
            "maxLength": 36,
            "audited": true,
            "copyToClipboard": true,
            "duplicateIgnore": true
        },
        "redirectUris": {
            "type": "urlMultiple",
            "protocolRequired": true,
            "audited": true,
            "maxItemLength": 1500,
            "storeArrayValues": false
        },
        "scopes": {
            "type": "array",
            "audited": true,
            "displayAsList": true,
            "required": true,
            "validatorClassNameList": [
                "Espo\\Classes\\FieldValidators\\OAuthClient\\Scopes\\Valid"
            ],
            "view": "views/o-auth-client/fields/scopes",
            "tooltip": true
        },
        "description": {
            "type": "text"
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        },
        "modifiedAt": {
            "type": "datetime",
            "readOnly": true
        },
        "createdBy": {
            "type": "link",
            "readOnly": true
        },
        "modifiedBy": {
            "type": "link",
            "readOnly": true
        }
    },
    "links": {
        "secrets": {
            "type": "hasMany",
            "entity": "OAuthClientSecret",
            "foreign": "client",
            "orderBy": "createdAt",
            "order": "desc",
            "readOnly": true
        },
        "createdBy": {
            "type": "belongsTo",
            "entity": "User"
        },
        "modifiedBy": {
            "type": "belongsTo",
            "entity": "User"
        }
    },
    "collection": {
        "orderBy": "name",
        "order": "asc",
        "textFilterFields": [
            "name"
        ]
    },
    "indexes": {
        "identifier": {
            "columns": [
                "identifier"
            ]
        }
    },
    "entityClassName": "Espo\\Tools\\OAuthServer\\Entities\\Client"
}