Skip to content

aiBudgetAlerts

const aiBudgetAlerts: SQLiteTableWithColumns<{ columns: { createdAt: SQLiteColumn<{ baseColumn: never; columnType: "SQLiteText"; data: string; dataType: "string"; driverParam: string; enumValues: [string, ...string[]]; generated: undefined; hasDefault: false; hasRuntimeDefault: false; identity: undefined; isAutoincrement: false; isPrimaryKey: false; name: "created_at"; notNull: true; tableName: "ai_budget_alerts"; }, { }, { length: number | undefined; }>; day: SQLiteColumn<{ baseColumn: never; columnType: "SQLiteText"; data: string; dataType: "string"; driverParam: string; enumValues: [string, ...string[]]; generated: undefined; hasDefault: false; hasRuntimeDefault: false; identity: undefined; isAutoincrement: false; isPrimaryKey: false; name: "day"; notNull: true; tableName: "ai_budget_alerts"; }, { }, { length: number | undefined; }>; id: SQLiteColumn<{ baseColumn: never; columnType: "SQLiteText"; data: string; dataType: "string"; driverParam: string; enumValues: [string, ...string[]]; generated: undefined; hasDefault: false; hasRuntimeDefault: false; identity: undefined; isAutoincrement: false; isPrimaryKey: true; name: "id"; notNull: true; tableName: "ai_budget_alerts"; }, { }, { length: number | undefined; }>; threshold: SQLiteColumn<{ baseColumn: never; columnType: "SQLiteInteger"; data: number; dataType: "number"; driverParam: number; enumValues: undefined; generated: undefined; hasDefault: false; hasRuntimeDefault: false; identity: undefined; isAutoincrement: false; isPrimaryKey: false; name: "threshold"; notNull: true; tableName: "ai_budget_alerts"; }, { }, { }>; }; dialect: "sqlite"; name: "ai_budget_alerts"; schema: undefined; }>

Defined in: packages/db-sqlite/src/schema/insight.ts:47

Narrow ai_budget_alerts table definition (primary key ${day}:${threshold} is the claim).