import{ulid as i}from"ulid";function d({relation:e,sourceFile:r,fileHash:o,sourceKey:n,organizationId:a,projectId:c}){const t=new Date().toISOString();return{id:`cer_${i()}`,organizationId:a,projectId:c,sourceKey:n,sourceId:null,sourceToTargetRelation:e.type,targetKey:e.key,targetId:null,targetToSourceRelation:`reverse:${e.type}`,sourceFile:r,fileHash:o,createdAt:t,updatedAt:t,schemaVersion:1}}export{d as createEntityRelationDbRecordFromFileSchema};
