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:
+9
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user