import{sqliteTable as r,text as e,integer as i,index as o,uniqueIndex as n}from"drizzle-orm/sqlite-core";const _=r("entities_relations",{id:e("id").primaryKey(),organizationId:e("organization_id").notNull(),projectId:e("project_id").notNull(),sourceKey:e("source_key").notNull(),sourceId:e("source_id"),sourceToTargetRelation:e("source_to_target_relation").notNull(),targetKey:e("target_key").notNull(),targetId:e("target_id"),targetToSourceRelation:e("target_to_source_relation").notNull(),sourceFile:e("source_file"),fileHash:e("file_hash"),createdAt:e("created_at").notNull(),updatedAt:e("updated_at").notNull(),schemaVersion:i("schema_version").notNull().default(1)},t=>[o("idx_entities_relations_source_key").on(t.sourceKey),o("idx_entities_relations_target_key").on(t.targetKey),o("idx_entities_relations_source_target").on(t.sourceToTargetRelation),o("idx_entities_relations_target_source").on(t.targetToSourceRelation),n("idx_entities_relations_source_key_target_to_source_relation_target_key").on(t.sourceKey,t.targetToSourceRelation,t.targetKey)]);export{_ as entitiesRelationsTable};
