-
Notifications
You must be signed in to change notification settings - Fork 14
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
Set basic data structure (station, podcast, episode) #497
Comments
Hey @lukad & @electronicbites, could you please have a look at the idea for structuring data? |
Since we have identified very variable definitions of items I would like to stay as flexible as possible at least in the beginning until we gathered some experience. We are probably dealing with a tree structure building the outliner. So every leaf in the tree has a type, a parent node, a public uuid, a priority, an owner and a type dependent list of attributes. We could start with a flexible Json structure as an attribute of the item but we might end with an extra table for these, e.g. |
For podcasts I would suggest a state-machine. It has different states and transitions (e.g. After a second thought I am not too sure about this anymore. How many states do we have? Are there only two? If thats the case a state-machine doesn´t make sense. |
@electronicbites, I think having a seperate table for each item type is the way to go in terms of maintainability and db operations. An State machine per might be a good idea, I can think of at least one other state which would be something like I don't really understand the reason for always having a "wip" episode. Why not just create it when it's needed? |
RFC
There exists a station as the root-node for all podcast related data (initially set).
You can't delete this station (only rename it), but you can add additional stations that can be deleted.
(example: metaebene is a station)
Every station can has multiple podcasts. each station has at least one podcast (initially set for every created station)
You can add more podcasts and delete all but the last one.
Every podcast has at least one episode that isn't published and in some kind of wip-status. if you publish an episode a new wip-episode will be created automatically.
(1-n) Station => (1-n) Podcasts => (1-n) Episode
The text was updated successfully, but these errors were encountered: