query: 'SELECT DISTINCT "distinctAlias"."UserEntity_id" AS "ids_UserEntity_id" FROM (SELECT "UserEntity"."id" AS "UserEntity_id", "UserEntity"."firstName" AS "UserEntity_firstName", "UserEntity"."lastName" AS "UserEntity_lastName", "UserEntity"."email" AS "UserEntity_email", "UserEntity"."defaultAvatarUrl" AS "UserEntity_defaultAvatarUrl", "UserEntity"."isEmailVerified" AS "UserEntity_isEmailVerified", "UserEntity"."disabled" AS "UserEntity_disabled", "UserEntity"."passwordHash" AS "UserEntity_passwordHash", "UserEntity"."canImpersonate" AS "UserEntity_canImpersonate", "UserEntity"."canAccessFullAdminPanel" AS "UserEntity_canAccessFullAdminPanel", "UserEntity"."createdAt" AS "UserEntity_createdAt", "UserEntity"."updatedAt" AS "UserEntity_updatedAt", "UserEntity"."deletedAt" AS "UserEntity_deletedAt", "UserEntity"."locale" AS "UserEntity_locale", "UserEntity__UserEntity_userWorkspaces"."id" AS "UserEntity__UserEntity_userWorkspaces_id", "UserEntity__UserEntity_userWorkspaces"."userId" AS "UserEntity__UserEntity_userWorkspaces_userId", "UserEntity__UserEntity_userWorkspaces"."workspaceId" AS "UserEntity__UserEntity_userWorkspaces_workspaceId", "UserEntity__UserEntity_userWorkspaces"."defaultAvatarUrl" AS "UserEntity__UserEntity_userWorkspaces_defaultAvatarUrl", "UserEntity__UserEntity_userWorkspaces"."locale" AS "UserEntity__UserEntity_userWorkspaces_locale", "UserEntity__UserEntity_userWorkspaces"."createdAt" AS "UserEntity__UserEntity_userWorkspaces_createdAt", "UserEntity__UserEntity_userWorkspaces"."updatedAt" AS "UserEntity__UserEntity_userWorkspaces_updatedAt", "UserEntity__UserEntity_userWorkspaces"."deletedAt" AS "UserEntity__UserEntity_userWorkspaces_deletedAt", "493dc7396a5140bb3506b05a96203f6641b6782c"."id" AS "493dc7396a5140bb3506b05a96203f6641b6782c_id", "493dc7396a5140bb3506b05a96203f6641b6782c"."displayName" AS "493dc7396a5140bb3506b05a96203f6641b6782c_displayName", "493dc7396a5140bb3506b05a96203f6641b6782c"."logo" AS "493dc7396a5140bb3506b05a96203f6641b6782c_logo", "493dc7396a5140bb3506b05a96203f6641b6782c"."inviteHash" AS "493dc7396a5140bb3506b05a96203f6641b6782c_inviteHash", "493dc7396a5140bb3506b05a96203f6641b6782c"."deletedAt" AS "493dc7396a5140bb3506b05a96203f6641b6782c_deletedAt", "493dc7396a5140bb3506b05a96203f6641b6782c"."createdAt" AS "493dc7396a5140bb3506b05a96203f6641b6782c_createdAt", "493dc7396a5140bb3506b05a96203f6641b6782c"."updatedAt" AS "493dc7396a5140bb3506b05a96203f6641b6782c_updatedAt", "493dc7396a5140bb3506b05a96203f6641b6782c"."allowImpersonation" AS "493dc7396a5140bb3506b05a96203f6641b6782c_allowImpersonation", "493dc7396a5140bb3506b05a96203f6641b6782c"."isPublicInviteLinkEnabled" AS "356ec1ea76d0dfb15b01776092c7dd8987697298", "493dc7396a5140bb3506b05a96203f6641b6782c"."trashRetentionDays" AS "493dc7396a5140bb3506b05a96203f6641b6782c_trashRetentionDays", "493dc7396a5140bb3506b05a96203f6641b6782c"."activationStatus" AS "493dc7396a5140bb3506b05a96203f6641b6782c_activationStatus", "493dc7396a5140bb3506b05a96203f6641b6782c"."metadataVersion" AS "493dc7396a5140bb3506b05a96203f6641b6782c_metadataVersion", "493dc7396a5140bb3506b05a96203f6641b6782c"."databaseUrl" AS "493dc7396a5140bb3506b05a96203f6641b6782c_databaseUrl", "493dc7396a5140bb3506b05a96203f6641b6782c"."databaseSchema" AS "493dc7396a5140bb3506b05a96203f6641b6782c_databaseSchema", "493dc7396a5140bb3506b05a96203f6641b6782c"."subdomain" AS "493dc7396a5140bb3506b05a96203f6641b6782c_subdomain", "493dc7396a5140bb3506b05a96203f6641b6782c"."customDomain" AS "493dc7396a5140bb3506b05a96203f6641b6782c_customDomain", "493dc7396a5140bb3506b05a96203f6641b6782c"."isGoogleAuthEnabled" AS "493dc7396a5140bb3506b05a96203f6641b6782c_isGoogleAuthEnabled", "493dc7396a5140bb3506b05a96203f6641b6782c"."isGoogleAuthBypassEnabled" AS "e4d46632bba5cf81ab157dc1e0963101c88d3d5c", "493dc7396a5140bb3506b05a96203f6641b6782c"."isTwoFactorAuthenticationEnforced" AS "493e01a3784a12c198cb803dcd3b548c299ae033", "493dc7396a5140bb3506b05a96203f6641b6782c"."isPasswordAuthEnabled" AS "493dc7396a5140bb3506b05a96203f6641b6782c_isPasswordAuthEnabled", "493dc7396a5140bb3506b05a96203f6641b6782c"."isPasswordAuthBypassEnabled" AS "817860232c80ba508ac646543934b48f2814cf81", "493dc7396a5140bb3506b05a96203f6641b6782c"."isMicrosoftAuthEnabled" AS "493dc7396a5140bb3506b05a96203f6641b6782c_isMicrosoftAuthEnabled", "493dc7396a5140bb3506b05a96203f6641b6782c"."isMicrosoftAuthBypassEnabled" AS "dafa12a31b48422fc08501001d5c0285de27f770", "493dc7396a5140bb3506b05a96203f6641b6782c"."isCustomDomainEnabled" AS "493dc7396a5140bb3506b05a96203f6641b6782c_isCustomDomainEnabled", "493dc7396a5140bb3506b05a96203f6641b6782c"."defaultRoleId" AS "493dc7396a5140bb3506b05a96203f6641b6782c_defaultRoleId", "493dc7396a5140bb3506b05a96203f6641b6782c"."version" AS "493dc7396a5140bb3506b05a96203f6641b6782c_version", "493dc7396a5140bb3506b05a96203f6641b6782c"."routerModel" AS "493dc7396a5140bb3506b05a96203f6641b6782c_routerModel", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."id" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_id", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."name" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_name", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."status" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_status", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."workspaceId" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_workspaceId", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."createdAt" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_createdAt", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."updatedAt" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_updatedAt", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."type" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_type", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."issuer" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_issuer", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."clientID" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_clientID", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."clientSecret" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_clientSecret", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."ssoURL" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_ssoURL", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."certificate" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_certificate", "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."fingerprint" AS "7b45896a1d09f350083a8692c8624b9f7ef7f3b7_fingerprint", "34c118476bd861daaa94438d9d93085422a937c2"."id" AS "34c118476bd861daaa94438d9d93085422a937c2_id", "34c118476bd861daaa94438d9d93085422a937c2"."createdAt" AS "34c118476bd861daaa94438d9d93085422a937c2_createdAt", "34c118476bd861daaa94438d9d93085422a937c2"."updatedAt" AS "34c118476bd861daaa94438d9d93085422a937c2_updatedAt", "34c118476bd861daaa94438d9d93085422a937c2"."domain" AS "34c118476bd861daaa94438d9d93085422a937c2_domain", "34c118476bd861daaa94438d9d93085422a937c2"."isValidated" AS "34c118476bd861daaa94438d9d93085422a937c2_isValidated", "34c118476bd861daaa94438d9d93085422a937c2"."workspaceId" AS "34c118476bd861daaa94438d9d93085422a937c2_workspaceId" FROM "core"."user" "UserEntity" LEFT JOIN "core"."userWorkspace" "UserEntity__UserEntity_userWorkspaces" ON "UserEntity__UserEntity_userWorkspaces"."userId"="UserEntity"."id" AND ("UserEntity__UserEntity_userWorkspaces"."deletedAt" IS NULL) LEFT JOIN "core"."workspace" "493dc7396a5140bb3506b05a96203f6641b6782c" ON "493dc7396a5140bb3506b05a96203f6641b6782c"."id"="UserEntity__UserEntity_userWorkspaces"."workspaceId" AND ("493dc7396a5140bb3506b05a96203f6641b6782c"."deletedAt" IS NULL) LEFT JOIN "core"."workspaceSSOIdentityProvider" "7b45896a1d09f350083a8692c8624b9f7ef7f3b7" ON "7b45896a1d09f350083a8692c8624b9f7ef7f3b7"."workspaceId"="493dc7396a5140bb3506b05a96203f6641b6782c"."id" LEFT JOIN "core"."approvedAccessDomain" "34c118476bd861daaa94438d9d93085422a937c2" ON "34c118476bd861daaa94438d9d93085422a937c2"."workspaceId"="493dc7396a5140bb3506b05a96203f6641b6782c"."id" WHERE ( (("UserEntity"."email" = $1)) ) AND ( "UserEntity"."deletedAt" IS NULL )) "distinctAlias" ORDER BY "UserEntity_id" ASC LIMIT 1', parameters: [ 'michal@lumitolab.com' ], driverError: error: column 493dc7396a5140bb3506b05a96203f6641b6782c.trashRetentionDays does not exist at /app/node_modules/pg/lib/client.js:526:17 at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async PostgresQueryRunner.query (/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25) at async SelectQueryBuilder.loadRawResults (/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:2192:25) at async SelectQueryBuilder.getRawMany (/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:646:29) at async SelectQueryBuilder.executeEntitiesAndRawResults (/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:1979:26) at async SelectQueryBuilder.getRawAndEntities (/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:684:29) at async SelectQueryBuilder.getOne (/app/node_modules/typeorm/query-builder/SelectQueryBuilder.js:711:25) at async UserWorkspaceService.findAvailableWorkspacesByEmail (/app/packages/twenty-server/dist/src/engine/core-modules/user-workspace/user-workspace.service.js:161:22) at async UserResolver.availableWorkspaces (/app/packages/twenty-server/dist/src/engine/core-modules/user/user.resolver.js:246:98) { length: 159, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '2705', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3722', routine: 'errorMissingColumn' }, length: 159, severity: 'ERROR', code: '42703', detail: undefined, hint: undefined, position: '2705', internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'parse_relation.c', line: '3722', routine: 'errorMissingColumn', extensions: {} } ]