feat: add source tracking fields to Department for sync idempotency
This commit is contained in:
@@ -41,6 +41,15 @@ export class Department {
|
|||||||
@Column({ length: 20, default: 'active' })
|
@Column({ length: 20, default: 'active' })
|
||||||
status: string;
|
status: string;
|
||||||
|
|
||||||
|
@Column({ length: 20, nullable: true })
|
||||||
|
source: string;
|
||||||
|
|
||||||
|
@Column({ name: 'source_id', length: 50, nullable: true })
|
||||||
|
sourceId: string;
|
||||||
|
|
||||||
|
@Column({ name: 'parent_source_id', length: 50, nullable: true })
|
||||||
|
parentSourceId: string;
|
||||||
|
|
||||||
@CreateDateColumn({ name: 'created_at' })
|
@CreateDateColumn({ name: 'created_at' })
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user