jlewi / foyle

Foyle is a copilot to help developers deploy and operate their applications.
https://foyle.io
Apache License 2.0
108 stars 9 forks source link

Timestamps in sessions tables are stored as TEXT #263

Open jlewi opened 1 month ago

jlewi commented 1 month ago

It looks like the startTime and endTime are actually stored as text in the sessions table because sqlite has no timestamp type. This makes it difficult to do operations like compute a timedifference. It might be better to store them as integers representing unix epoch time.