Helper to create column definitions
Boolean column stored as INTEGER 0/1 in the database
converted: <App>(config: { default?: () => App; write: (v: App) => InValue; read: (raw: InValue) => App; }) => ColumnDef<App>
Column with type conversion between app and DB representations
Column with read/write transforms (e.g., for encryption)
encryptedNullable: <T>(def: ColumnDef<T>) => ColumnDef<T | null>
Wrap an existing encrypted column def to pass through null values
encryptedText: (encrypt: ColumnTransform<string>,decrypt: ColumnTransform<string>) => ColumnDef<string>
Encrypted text column with empty-string default
Column with custom transforms
withDefault: <T>(defaultFn: () => T) => ColumnDef<T>
Column with default value