{ "fields": { "name": { "type": "varchar", "readOnly": true, "orderDisabled": true, "duplicateIgnore": true }, "value": { "type": "varchar", "readOnly": true, "notStorable": true, "orderDisabled": true, "directAccessDisabled": true, "duplicateIgnore": true, "view": "views/o-auth-client-secret/fields/value" }, "hash": { "type": "password", "dbType": "text", "maxLength": 255, "readOnly": true, "orderDisabled": true, "duplicateIgnore": true }, "client": { "type": "link", "required": true, "readOnlyAfterCreate": true }, "status": { "type": "enum", "options": [ "Active", "Revoked", "Expired" ], "default": "Active", "maxLength": 7, "readOnly": true, "style": { "Revoked": "info", "Expired": "info" }, "audited": true, "duplicateIgnore": true }, "expirationDate": { "type": "date", "readOnlyAfterCreate": 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": { "client": { "type": "belongsTo", "entity": "OAuthClient", "foreign": "secrets" }, "createdBy": { "type": "belongsTo", "entity": "User" }, "modifiedBy": { "type": "belongsTo", "entity": "User" } }, "indexes": { "statusExpirationDate": { "columns": [ "status", "expirationDate" ] }, "clientIdStatusCreatedAt": { "columns": [ "clientId", "status", "createdAt" ] } }, "collection": { "orderBy": "createdAt", "order": "desc", "textFilterFields": [] }, "entityClassName": "Espo\\Tools\\OAuthServer\\Entities\\ClientSecret" }