mirror of
https://github.com/atuinsh/atuin.git
synced 2025-08-09 23:27:55 +02:00
Add database functions for inserting history
No real tests yet :( I would like to avoid running postgres lol
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
-- Add migration script here
|
||||
create table records (
|
||||
id uuid primary key, -- remember to use uuidv7 for happy indices <3
|
||||
client_id uuid not null, -- I am too uncomfortable with the idea of a client-generated primary key
|
||||
host uuid not null, -- a unique identifier for the host
|
||||
parent uuid not null, -- the ID of the parent record, bearing in mind this is a linked list
|
||||
timestamp bigint not null, -- not a timestamp type, as those do not have nanosecond precision
|
||||
|
Reference in New Issue
Block a user