Add universal identifier to view tables (#14139)

## Context
Introducing a new SyncableEntity abstraction that can be extended by
Entities that we want to "sync" via their universal identifier (the
class will add this uuid to the entity). Starting with views, will
refactor existing syncable entities such as objects/fields later
This commit is contained in:
Weiko
2025-08-28 17:33:39 +02:00
committed by GitHub
parent 7c481abf0c
commit af6fc1e9ef
8 changed files with 112 additions and 6 deletions
@@ -0,0 +1,9 @@
import { Column, Index } from 'typeorm';
@Index(['workspaceId', 'universalIdentifier'], {
unique: true,
})
export abstract class SyncableEntity {
@Column({ nullable: true, type: 'uuid' })
universalIdentifier?: string | null;
}