-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New encoding for SequenceSection #8
Comments
Alright, so talking with Ryan Smith made me realize that we could/should be using a database to store all of this data. I took a picture of the structure we worked out. Basically a user has a user id (uid) that links to many Permissions. Each Permission has a uid, a sequence id (seqid), the permission info, and a section id (sectid). A Section has a sectid, a start and end time (t_start and t_end), a seqid, and a list of Fixture ids ([fid]). A Sequence has a seqid, a list of fixture ids, and the actual sequence data. A Fixture has a fid, metadata about it, and a list of channel ids ([cid]). A Channel has a cid, a fid, and metadata about it. If any questions about any of that, or if that made no sense, post in the comments. |
This will affect how a lot of the cli is structured, just fyi |
So the way I'm understanding it right now, is that we will have multiple sequences that are being split up into sections for each user (which is what the t_start and t_end are for), and then each sequence, and therefore each section, will have an array of fixtures associated with it, and each fixture will have an array of channels associated with it. |
I just realized my post is 1-indexed. You can 0-index or 1-index, just make sure you stay consistent with whatever you choose. |
We need to find a better way to store Sequence Section data besides JSON. JSON is nice, but clunky. Our data is pretty close to just binary, since each channel/time block is one byte big. Discuss thoughts below!
The text was updated successfully, but these errors were encountered: