atuin/crates/atuin-client/record-migrations/20230531212437_create-records.sql
Ellie Huxtable 95cc472037
chore: move crates into crates/ dir (#1958)
I'd like to tidy up the root a little, and it's nice to have all the
rust crates in one place
2024-04-18 16:41:28 +01:00

17 lines
419 B
SQL

-- Add migration script here
create table if not exists records (
id text primary key,
parent text unique, -- null if this is the first one
host text not null,
timestamp integer not null,
tag text not null,
version text not null,
data blob not null,
cek blob not null
);
create index host_idx on records (host);
create index tag_idx on records (tag);
create index host_tag_idx on records (host, tag);