Importing from per-directory-history

I’m coming over to Atuin from per-directory-history. I’ve used a simple python script to get all the data from it as a csv file which includes cwd, timestamp (in seconds) and cmd.

I’m on a mac so I’ve used TablePlus to dig around in the Atuin history.db file. I’ve also seen from github discussions that if I do make changes in history.db I need to use atuin history init-store to update the records.db.

What I’m looking for is info on how I should populate the columns I don’t have data for: id and session.

Any pointers would be great including telling me I’m going about this in completely the wrong way.

I think a built in Atuin csv import would be great as a catch all for any configs your import tools can’t handle.