import{sql as a}from"drizzle-orm";const i=(r="",t)=>{const e=r?`${r}.`:"";return{id:t?a.raw(e+"id").as(t):a.raw(e+"id"),organizationId:a.raw(e+"organization_id"),projectId:a.raw(e+"project_id"),key:a.raw(e+"key"),type:a.raw(e+"type"),title:a.raw(e+"title"),summary:a.raw(e+"summary"),tags:a.raw(e+"tags"),metadata:a.raw(e+"metadata"),git:a.raw(e+"git"),contact:a.raw(e+"contact"),links:a.raw(e+"links"),createdAt:a.raw(e+"created_at"),updatedAt:a.raw(e+"updated_at"),source:a.raw(e+"source"),sourceFile:a.raw(e+"source_file"),fileHash:a.raw(e+"file_hash"),schemaVersion:a.raw(e+"schema_version")}},s=(r="",t)=>{const e=r?`${r}.`:"";return{id:t?a.raw(e+"id").as(t):a.raw(e+"id"),organizationId:a.raw(e+"organization_id"),projectId:a.raw(e+"project_id"),sourceKey:a.raw(e+"source_key"),sourceId:a.raw(e+"source_id"),sourceToTargetRelation:a.raw(e+"source_to_target_relation"),targetKey:a.raw(e+"target_key"),targetId:a.raw(e+"target_id"),targetToSourceRelation:a.raw(e+"target_to_source_relation"),fileHash:a.raw(e+"file_hash"),createdAt:a.raw(e+"created_at"),updatedAt:a.raw(e+"updated_at"),schemaVersion:a.raw(e+"schema_version")}},c=(r="")=>{const t=r?`${r}.`:"";return{id:a.raw(t+"entity_id"),organizationId:a.raw(t+"organization_id"),projectId:a.raw(t+"project_id"),key:a.raw(t+"key"),type:a.raw(t+"type"),title:a.raw(t+"title"),summary:a.raw(t+"summary"),tags:a.raw(t+"tags"),metadata:a.raw(t+"metadata"),git:a.raw(t+"git"),contact:a.raw(t+"contact"),links:a.raw(t+"links"),createdAt:a.raw(t+"created_at"),updatedAt:a.raw(t+"updated_at"),source:a.raw(t+"source"),sourceFile:a.raw(t+"source_file"),fileHash:a.raw(t+"file_hash"),schemaVersion:a.raw(t+"schema_version")}},d=(r="")=>{const t=r?`${r}.`:"";return{id:a.raw(t+"entity_id").as("id"),organizationId:a.raw(t+"organization_id").as("organization_id"),projectId:a.raw(t+"project_id").as("project_id"),key:a.raw(t+"key").as("key"),type:a.raw(t+"type").as("type"),title:a.raw(t+"title").as("title"),summary:a.raw(t+"summary").as("summary"),tags:a.raw(t+"tags").as("tags"),metadata:a.raw(t+"metadata").as("metadata"),git:a.raw(t+"git").as("git"),contact:a.raw(t+"contact").as("contact"),links:a.raw(t+"links").as("links"),createdAt:a.raw(t+"created_at").as("created_at"),updatedAt:a.raw(t+"updated_at").as("updated_at"),source:a.raw(t+"source").as("source"),sourceFile:a.raw(t+"source_file").as("source_file"),fileHash:a.raw(t+"file_hash").as("file_hash"),schemaVersion:a.raw(t+"schema_version").as("schema_version")}},w=i(),n=s();export{w as FIELDS_TO_SELECT_FOR_ENTITY,n as FIELDS_TO_SELECT_FOR_ENTITY_RELATION,i as createEntityFieldsForSelect,s as createEntityRelationFieldsForSelect,c as createQualifiedEntityFieldsForSelect,d as createQualifiedEntityFieldsForSelectWithAliases};
