import{ulid as u}from"ulid";function s(e,r,c){const t=new Date().toISOString();return{id:e.id||`cer_${u()}`,organizationId:r,projectId:c,sourceKey:e.sourceKey,sourceId:e.sourceId||null,sourceToTargetRelation:e.type,targetKey:e.targetKey,targetId:e.targetId||null,targetToSourceRelation:`reverse:${e.type}`,sourceFile:e.sourceFile||null,fileHash:e.fileHash||null,createdAt:e.createdAt||t,updatedAt:t,schemaVersion:1}}export{s as createEntityRelationDbRecordFromDto};
