atuin/crates/atuin-client/migrations/20220505083406_create-events.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

12 lines
312 B
SQL

create table if not exists events (
id text primary key,
timestamp integer not null,
hostname text not null,
event_type text not null,
history_id text not null
);
-- Ensure there is only ever one of each event type per history item
create unique index history_event_idx ON events(event_type, history_id);