[쇼빌리티] 모델링 중

2020. 12. 1. 16:05개인 프로젝트

  • 모든 컨텐츠(allContents)

{

"pk": "userId:Category:filePk",
    "filePk": "",
    "representImage": "",
    "category": "",
    "tag": ["tag1", "tag2", "tag3"],
    "userId": "",
    "uploadDate": "",
    "groupId": "",
    "likers": [{
        "AnotherId1": true,
        "AnotherId2": true
    }],
    "viewCount": ""
}

 

  • 팔로워/팔로잉
    {
        "users": [{
            "userID": "MyId1",
            "followers": [{
                "followerUserID": "AnotherPersonId1",
                "profileImage": "imagePath"
            }, {
                "followerUserID": "AnotherPersonId2",
                "profileImage": "imagePath"
            }]
        }, {
            "userID": "MyId2",
            "followings": [{
                "followerUserID": "AnotherPersonId3",
                "profileImage": "imagePath"
            }, {
                "followerUserID": "AnotherPersonId4",
                "profileImage": "imagePath"
            }]
        }]
    }

  • {
        "users": [{
            "userID": "MyId1",
            "followings": [{
                "followUserID": "id3",
                "profileImage": "imagePath"
            }, {
                "followUserID": "id4",
                "profileImage": "imagePath"
            }]
        }, {
            "userID": "MyId2",
            "followings": [{
                "followUserID": "id3",
                "profileImage": "imagePath"
            }, {
                "followUserID": "id3",
                "profileImage": "imagePath"
            }]
        }]
    }

 

 

  • 개인 피드(personalContents)
    {
        "userID": "dlaRJR",
        "profileImage": "imagePath",
        "likers": [{
            "AnotherId1": true,
            "AnotherId2": true
        }],
        "Info": "introduce",
        "url": "wwwcom",
        "followers": [{
            "AnotherPersonId1": true,
            "profileImage": "imagePath"
        }, {
            "AnotherPersonId2": true,
            "profileImage": "imagePath"
        }],
        "followings": [{
            "folloingUserID": true,
            "profileImage": "imagePath"
        }, {
            "folloingUserID2": true,
            "profileImage": "imagePath"
        }],
        "contents": [{
            "filePk": "Category:filePk",
            "category": "Category1",
            "tag": ["Metro City", "hanguk"],
            "representImage": "pathOfImage",
            "otherImage": [{
                "pk": "1",
                "ImagePath": "path1",
                "likers": [{
                    "AnotherId1": true,
                    "AnotherId2": true
                }]
            }, {
                "pk": "2",
                "ImagePath": "path2",
                "likers": [{
                    "AnotherId1": true,
                    "AnotherId2": true
                }]
            }],
            "title": "Super tower",
            "likers": [{
                "AnotherId1": true,
                "AnotherId2": true
            }],
            "comments": [{
                "userId": "Ssni1",
                "profileImage": "imagePath",
                "content": "eotrmf",
                "createDate": "date",
                "updateTF": false,
                "likers": [{
                    "userId": "id1"
                }],
                "commentOfcomment": [{
                    "userId": "Ssni1",
                    "profileImage": "imagePath",
                    "content": "eotrmf",
                    "createDate": "date",
                    "updateTF": false,
                    "likers": [{
                        "userId": "id1"
                    }]
                }]
            }, {
                "userId": "Ssni1",
                "profileImage": "imagePath",
                "content": "eotrmf",
                "createDate": "date",
                "updateTF": false,
                "likers": [{
                    "userId": "id1"
                }],
                "commentOfcomment": [{
                    "userId": "Ssni1",
                    "profileImage": "imagePath",
                    "content": "eotrmf",
                    "createDate": "date",
                    "updateTF": false,
                    "likers": [{
                        "userId": "id1"
                    }]
                }]
            }]
        }]
    }

 

그룹.