/** * Drizzle schema for the terminal → session binding table * (`session_terminal_bindings`) — T12499 · epic T12497. * * One row per terminal / harness identity key (see * `sessions/terminal-identity.ts`), naming the CLEO session that terminal * started. Written by `session start`; read by session resolution before the * newest-active-row fallback. * * Pure runtime infrastructure in the PROJECT `cleo.db` only (migration * `drizzle-cleo-project/…_t12499-session-terminal-bindings`), following the * `schedules` precedent (T11962): it is not part of the exodus target shape * under `schema/cleo-project/`. `sessionId` is an INTRA-DB foreign key to * `tasks_sessions.id` (same project `cleo.db`), `ON DELETE CASCADE`, so a * deleted session takes its bindings with it. Resolution still re-checks that * the bound session is active before honouring a binding. * * @module * @task T12499 * @epic T12497 */ /** Physical table name — the single source for the accessor and tests. */ export declare const SESSION_TERMINAL_BINDINGS_TABLE: "session_terminal_bindings"; /** * `session_terminal_bindings` — terminal identity key → CLEO session id. * * @task T12499 */ export declare const sessionTerminalBindings: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{ name: "session_terminal_bindings"; schema: undefined; columns: { bindingKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "session_terminal_bindings"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: true; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; keySource: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "session_terminal_bindings"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; keyKind: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "session_terminal_bindings"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; sessionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "session_terminal_bindings"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: false; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; boundByProvider: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "session_terminal_bindings"; dataType: "boolean"; data: boolean; driverParam: number; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: undefined; baseColumn: never; identity: undefined; generated: undefined; }, {}>; boundAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{ name: string; tableName: "session_terminal_bindings"; dataType: "string"; data: string; driverParam: string; notNull: true; hasDefault: true; isPrimaryKey: false; isAutoincrement: false; hasRuntimeDefault: false; enumValues: [string, ...string[]]; baseColumn: never; identity: undefined; generated: undefined; }, {}>; }; dialect: "sqlite"; }>; //# sourceMappingURL=session-binding-schema.d.ts.map