iwanori / life-target

2 stars 1 forks source link

スキルツリー内に同じスキルは重複して良いのか #3

Open tamura2004 opened 7 years ago

tamura2004 commented 7 years ago

skills = [ {"id": 0, "name": "root"}, {"id": 1, "name": "5km"}, {"id": 2, "name": "10km"} ]

skilltree = { "user_id": 0, "skill_id": 0, "skills": [ { "skill_id": 1, "skills": [ {"skill_id": 2, "skills": []}, {"skill_id": 1, "skills": []} ] } ] }

root |- 5km |- 10km |- 5km

iwanori commented 7 years ago

ここは少し悩みましたが、このパターンを考えると重複は許可したいところ

夏場にはあついから5キロ走ろう 冬場はシーズンだから10キロ走ろう また夏がきたから5キロ走ろう

という場合。

2017/02/21 午後2:08 "tamura2004" notifications@github.com:

skills = [ {"id": 0, "name": "root"}, {"id": 1, "name": "5km"}, {"id": 2, "name": "10km"} ]

skilltree = { "user_id": 0, "skill_id": 0, "skills": [ { "skill_id": 1, "skills": [ {"skill_id": 2, "skills": []}, {"skill_id": 1, "skills": []} ] } ] }

root |- 5km |- 10km |- 5km

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iwanori/life-target/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AMVBhYrS7Hs18H6kkLouc4ERpTgS6UZGks5renFVgaJpZM4MG4qr .