Text
Vs string
{ "username": Text "email" : Email "provider": Text "password" : Password "resetPasswordToken": Text "confirmationToken" : Text "confirmed" : Boolean "blocked": Boolean "role" : Relation with Role (from: users-permissions) "profile" : Profile, // Relation with Profile }
{ "category": Text, "answerType": Enum // trueOrFalse | multipleChoice | shortAnswer "question": Text, "image": Text(optional), "answer": Text, "explanation": Text, // 정답 설명 "difficulty": Number, "importance": Number, + "correctCnt" : Number, + "incorrectCnt" : Number "profile" : Profile // Relation with Profile, 1:1 "quiz_pack": QuizPack[] // Relation with QuizPack, 다:1 "likes": Like[] // Relation with Like, "comments": Comment[] // Relation with Comment, }
{ "title": Text, "tags": Tag[] // // Relation with Tag, '다:다' "description": Text // 퀴즈세트 설명 내용 "profile": Profile // Relation with Profile, '다:1', "quizzes": Quiz[], // Relation with Quiz, '1:다' }
{ "nickname":Text, "points": Number, "users_permissions_user" : User, "achivements": Achievement[] // Relation with Achievement, '다:다' "quizzes": Quiz[], // Relation with Quiz, '1:다' "quiz_packs" :QuizPack[] // Relation with QuizPack, '1:다' => 자기가 만든 것 "likes": Like[], // Relation with Like, '1:다' "comments": String[], // Relation with Comment, '1:다' }
{ "title" : String "profiles": Profile[] // Relation with Profile, '다:다', }
{ "content": Text, "author": Profile[] // Relation with Profile, '다:1', "quiz": Quiz, // Relation with Quiz, '다:1' }
{ "author": Profile[] // Relation with Profile, '다:1', "quiz": Quiz, // Relation with Quiz, '다:1' }
{ "content" : Text "quiz_packs": QuizPack[] // Relation with QuizPack,'다:다' }