LixInsertable<
T
> ={ [K in NonNullableInsertKeys<T>]: InsertType<T[K]> }
&{ [K in NullableInsertKeys<T>]?: InsertType<T[K]> }
Transform a type for insert operations.
This type makes LixGenerated fields optional while keeping other required fields mandatory. Use this when defining types for creating new entities.
The database will automatically populate generated fields (like IDs, timestamps) if not provided.
T