mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-11 09:40:45 +01:00
12 lines
312 B
MySQL
12 lines
312 B
MySQL
|
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);
|