Skip to content
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

Generic item tag-levelling model #14

Open
DashDeipayan opened this issue Oct 26, 2022 · 0 comments
Open

Generic item tag-levelling model #14

DashDeipayan opened this issue Oct 26, 2022 · 0 comments
Assignees

Comments

@DashDeipayan
Copy link

DashDeipayan commented Oct 26, 2022

Data Models:

  • Model =
     	Tags: {
     		id: String,
                    type: String,
     		name: String,
     		createdBy: String,
     		reason: String,
     		date: Timestamp,
     	        },
     	ItemTags: {
     		itemid: String,
     		tagid: String,
                    tagname: String,
                    tagtype: String,
                    itemType: String,
                    levelid: String,
                    levelname: String,
                    levelnumber: Number
     	       },
     	Levels: {
     	        id: String,
     	        name: String,
     	        createdBy: String,
                    levelnumber: Number,
     	        date: Timestamp
     	        }
    
  • Tags and levels are used to label an item(users, tasks, etc) and its difficulty/experience level respectively.
  • Each document in ItemTags will be an item(users, tasks, etc) having a tagid, itemid, its type and also levelid, all referring to its corresponding document in Tag and Level collection.
  • This type of modelling enables assigning tags to any item and also doing a different level assignment to the things.
  • For a task, some typical documents will look like;
    {
        itemid: taskid,
        tagid: some_id_feature_react
        tagname: REACT,
        tagtype: SKILL,
        itemType: TASK,
        levelid: some_id_level_4
        levelname: advanced,
        levelnumber: 4
    }
  • For an user, some typical documents will look like;
    {
        itemid: userid_deipayan,
        tagid: some_id_software_engineer,
        tagtype: USER,
        tagname: SOFTWARE-ENGINEER,
        itemType: USER,
        levelid: some_id_level_3,
        levelname: pro,
        levelnumber: 3,
    },
    {
        itemid: userid_deipayan,
        tagid: some_id_springboot,
        itemType: USER,
        tagtype: SKILL,
        tagname: SPRINGBOOT,
        levelid: some_id_level_1,
        levelname: newbie,
        levelnumber: 1
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants