Open tevpg opened 6 months ago
I wonder if this is necessary. It was to be a middle-form file format --
various --> adapters --> xchg --> loader --> database
clients fmt
But I wonder if this makes more sense:
various --> network --> client --> various --> database
clients fetch formats loaders
Because:
It's nice to have that exchange format schema though, as a spec to give [whoever]. And of course, writing a loader for that would be straightforward
Likely base on this as a JSON schema, which can contain multiple dates & sites. So a google sheet summary of multiple sites can go into one file, as can a single day of tagtracker data or 2wheel-valet data.
Each file has a list of one or more days:
File would have an org_code as well, to act as a double-check. Org is usually inferred from the upload location or similar system characteristics, but can be checked against this.... just in case.
When a converter is used on a file that only has visits (eg two wheel valet) then the converter can figure out the summary totals, and can even guess at the open/close times
Could extend this schema to do validations like: