2021-03-21 21:04:39 +01:00
|
|
|
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
|
2021-04-13 20:14:07 +02:00
|
|
|
hostname text not null, -- a unique identifier from the client (can be hashed, random, whatever)
|
2021-03-21 21:04:39 +01:00
|
|
|
timestamp timestamp not null, -- one of the few non-encrypted metadatas
|
|
|
|
|
2021-04-13 20:14:07 +02:00
|
|
|
data varchar(8192) not null, -- store the actual history data, encrypted. I don't wanna know!
|
|
|
|
|
|
|
|
created_at timestamp not null default current_timestamp
|
2021-03-21 21:04:39 +01:00
|
|
|
);
|