initial_schema

Function initial_schema 

fn initial_schema(tables: &Tables) -> String
Available on crate feature turso only.
Expand description

Migration v1: the live-state tables plus the per-filter subscription table.

Each filter the application has touched is one row. state_tag is 0=Subscribing, 1=Subscribed, 2=Unsubscribing. packet_id, filter_index, and was_subscribed carry the in-flight Subscribing/Unsubscribing fields and are NULL for a confirmed Subscribed row.