yagi2 / imas_api

アイマスの情報を叩けば出るAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

1人のキャラに対して2人のCVが付いている場合。

yagi2 opened this issue · comments

カラムの定義変えるしか無いかな……

多分雪歩に対してのあずみんとゆりしーっていうケースだけだと思うんだけど。

闇を感じる

active statusで見分けていく
ref #13 にも応用できそう

slack_for_ios_upload

nicknameもtableにできそう

Nicknames

id nickname type idol_id voice_actor_id
1 えりりん voice_actor null 1
2 はるるん idol 1 null
3 はるかっか idol 1 null

まとめ

Idols

id name production_id voice_actor_id
1 天海春香 1 1
2 萩原雪歩 1 2
3 萩原雪歩 1 3
4 菊地真 1 4

VoiceActors

id name active
1 中村繪里子 0
2 長谷優里奈 1
3 浅倉杏美 0
4 平田宏美 0

Nicknames

id nickname type idol_id voice_actor_id
1 えりりん voice_actor null 1
2 はるるん idol 1 null
3 はるかっか idol 1 null
4 ゆりしー voice_actor null 2
5 あずみん voice_actor null 3
6 マーガリン voice_actor null 3
7 ひろりん voice_actor null 4

Productions

id name president
1 765プロダクション 高木順二朗
2 961プロダクション 黒井崇男
3 876プロダクション 石川実

さぁModel書くかって思ったけどFuelPHPのModelがわかんなくて死

うーん ニックネームは分離しなくてもいいかなって感じになってきた

あーでも複数ニックネーム対応できるからつよいな

それなんだよな