import{sqliteTable as o,text as t,integer as i,index as n,uniqueIndex as l}from"drizzle-orm/sqlite-core";const r=o("scorecards_results",{id:t("id").primaryKey().notNull(),entityId:t("entity_id").notNull(),configId:t("config_id").notNull(),createdAt:i("created_at").notNull(),evaluatedAt:i("evaluated_at").notNull(),finalScore:i("final_score").notNull(),finalLevel:t("final_level"),evaluatedRules:t("evaluated_rules").notNull(),rulesConfigHash:t("rules_config_hash").notNull(),entityVersion:t("entity_version").notNull(),entityRevision:t("entity_revision")},e=>[l("idx_results_lookup").on(e.entityId,e.configId,e.createdAt),n("idx_results_config_time").on(e.configId,e.createdAt),n("idx_results_entity").on(e.entityId,e.createdAt),n("idx_results_config_entity_time").on(e.configId,e.entityId,e.createdAt)]);export{r as scorecardsResultsTable};
