mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 17:54:55 +01:00
c9579cb9ca
* Add initial database and server setup * Set up all routes, auth, etc * Implement sessions, password auth, hashing with argon2, and history storage
12 lines
546 B
SQL
12 lines
546 B
SQL
-- Your SQL goes here
|
|
-- lower case SQL please, this isn't a shouting match
|
|
create table history (
|
|
id bigserial primary key,
|
|
client_id text not null unique, -- the client-generated ID
|
|
user_id bigserial not null, -- allow multiple users
|
|
mac varchar(128) not null, -- store a hashed mac address, to identify machines - more likely to be unique than hostname
|
|
timestamp timestamp not null, -- one of the few non-encrypted metadatas
|
|
|
|
data varchar(8192) not null -- store the actual history data, encrypted. I don't wanna know!
|
|
);
|