Finalize Schema
Currently schema is based off the old AlgDB. We need to add Tags as well as sub-alg sets, and queries to fetch/search by tags.
Added the tags-related mutations/queries/types in 290dfc335ff60d8cad27c06ae26c26083cbfa814
Feel free to let me know if i missed anything.
For sub-alg sets, should that be a required intermediary between AlgSet and Case? So it would go, AlgSet -> Sub AlgSet -> Case -> Alg?
Added the concept of user roles in 82f0540
ADMIN, MODERATOR, and NORMAL are the 3 roles so far
Admin can update the roles of all users, so they must be extremely trusted
Moderator should have certain abilities to approve stuff
2 comments:
- Each
Algshould probably have a field for all of its "global" tags - Since we're using Tags so extensively, I think categorizing them into separate types would be good. So a
typefield inTags
@saranshgrover
- Just to confirm, global tags are separate from the user tags, right? So the
UserAlgTagLinkwould represent a specific user applying a tag to an alg, whereas the global tag would be simply attached to the Alg when it is submitted? Who can add/remove global tags to algs, or can it not be updated at all? - What kinds of tag types would there be? Could set it as an
enumif it is a fixed and finite set of types.