Something went wrong. Try again.
[ARCHIVED] A PLC Mirror written in Rust
Something went wrong. Try again.
579 B · 22 lines
SQL
at main
12345678910111213141516171819202122create table if not exists dids( did text primary key);
create table if not exists operations( did text not null references dids (did), hash text not null, prev text, sig text not null, nullified bool not null default false,
operation jsonb not null,
created_at timestamptz not null default now(),
primary key (did, hash));
create index if not exists operations_created on operations (created_at);create index if not exists operations_nullified on operations (nullified);