import { State } from '@livestore/common/schema'; import { Schema } from '@livestore/utils/effect'; /** * Main event log table storing all LiveStore events. * * ⚠️ IMPORTANT: Any changes to this schema require bumping PERSISTENCE_FORMAT_VERSION in shared.ts */ export declare const eventlogTable: State.SQLite.TableDef, number, never>; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly parentSeqNum: { columnType: "integer"; schema: Schema.Schema, number, never>; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly name: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly args: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: true; primaryKey: false; autoIncrement: false; }; /** ISO date format. Currently only used for debugging purposes. */ readonly createdAt: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly clientId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly sessionId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; }>, State.SQLite.WithDefaults<{ readonly seqNum: { columnType: "integer"; schema: Schema.Schema, number, never>; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly parentSeqNum: { columnType: "integer"; schema: Schema.Schema, number, never>; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly name: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly args: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: true; primaryKey: false; autoIncrement: false; }; /** ISO date format. Currently only used for debugging purposes. */ readonly createdAt: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly clientId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly sessionId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; }>, Schema.Schema<{ readonly seqNum: number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">; readonly parentSeqNum: number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">; readonly name: string; readonly args: any; readonly createdAt: string; readonly clientId: string; readonly sessionId: string; }, { readonly seqNum: number; readonly parentSeqNum: number; readonly name: string; readonly args: string | null; readonly createdAt: string; readonly clientId: string; readonly sessionId: string; }, never>>; /** * Context metadata table - one row per Durable Object. * * ⚠️ IMPORTANT: Any changes to this schema require bumping PERSISTENCE_FORMAT_VERSION in shared.ts */ export declare const contextTable: State.SQLite.TableDef; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly currentHead: { columnType: "integer"; schema: Schema.Schema, number, never>; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly backendId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; }>, State.SQLite.WithDefaults<{ readonly storeId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: true; autoIncrement: false; }; readonly currentHead: { columnType: "integer"; schema: Schema.Schema, number, never>; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; readonly backendId: { columnType: "text"; schema: Schema.Schema; default: import("effect/Option").None; nullable: false; primaryKey: false; autoIncrement: false; }; }>, Schema.Schema<{ readonly storeId: string; readonly currentHead: number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">; readonly backendId: string; }, { readonly storeId: string; readonly currentHead: number; readonly backendId: string; }, never>>; //# sourceMappingURL=sqlite.d.ts.map