Skip to content

EspoCRM – Open Source CRM Application

1.9 KB
Raw Blame
{
    "fields": {
        "hash": {
            "type": "password",
            "maxLength": 64,
            "readOnly": true
        },
        "status": {
            "type": "enum",
            "options": [
                "Active",
                "Revoked",
                "Expired"
            ],
            "default": "Active",
            "maxLength": 7,
            "readOnly": true,
            "style": {
                "Revoked": "info",
                "Expired": "info"
            }
        },
        "expiresAt": {
            "type": "datetime",
            "readOnly": true,
            "required": true
        },
        "user": {
            "type": "link",
            "readOnly": true
        },
        "client": {
            "type": "link",
            "readOnly": true
        },
        "accessToken": {
            "type": "link",
            "readOnly": true
        },
        "createdAt": {
            "type": "datetime",
            "readOnly": true
        },
        "modifiedAt": {
            "type": "datetime",
            "readOnly": true
        }
    },
    "links": {
        "user": {
            "type": "belongsTo",
            "entity": "User"
        },
        "client": {
            "type": "belongsTo",
            "entity": "OAuthClient"
        },
        "accessToken": {
            "type": "belongsTo",
            "entity": "OAuthAccessToken",
            "foreignName": "id"
        }
    },
    "collection": {
        "orderBy": "createdAt",
        "order": "desc",
        "textFilterFields": []
    },
    "indexes": {
        "hash": {
            "columns": [
                "hash"
            ]
        },
        "createdAt": {
            "columns": [
                "createdAt"
            ]
        },
        "expiresAtStatus": {
            "columns": [
                "expiresAt",
                "status"
            ]
        }
    },
    "entityClassName": "Espo\\Tools\\OAuthServer\\Entities\\RefreshToken"
}