import{sqliteTable as i,text as e,integer as n,index as o,uniqueIndex as a}from"drizzle-orm/sqlite-core";const s=i("entities",{id:e("id").primaryKey(),organizationId:e("organization_id").notNull(),projectId:e("project_id").notNull(),key:e("key").notNull().unique(),type:e("type").notNull(),title:e("title").notNull(),summary:e("summary"),tags:e("tags"),metadata:e("metadata"),git:e("git"),contact:e("contact"),links:e("links"),createdAt:e("created_at").notNull(),updatedAt:e("updated_at").notNull(),source:e("source").default("file"),sourceFile:e("source_file"),fileHash:e("file_hash"),schemaVersion:n("schema_version").notNull().default(1)},t=>[o("idx_entities_type").on(t.type),a("idx_entities_key_source").on(t.key,t.source)]);export{s as entitiesTable};
