Explicitly set workspaceId column as uuid type to ease pg LEFT JOIN (#15430)

Pg scan was redundant because historically the workspaceId was
`varchar`, even though below migration won't change that we had a look
to workspaceId col declaration across the codebase
This commit is contained in:
Paul Rastoin
2025-10-29 19:08:44 +01:00
committed by GitHub
parent 33545a072c
commit f6f52d676f
14 changed files with 88 additions and 15 deletions
@@ -52,8 +52,8 @@ export class AppTokenEntity {
@JoinColumn({ name: 'workspaceId' })
workspace: Relation<WorkspaceEntity>;
@Column({ nullable: true })
workspaceId: string;
@Column({ nullable: true, type: 'uuid' })
workspaceId: string | null;
@Field()
@Column({ nullable: false, type: 'text', default: AppTokenType.RefreshToken })