Last active
December 24, 2017 12:40
-
-
Save webuilder240/4aef41d9883d64e231354a09359ec064 to your computer and use it in GitHub Desktop.
2ch(5ちゃんねる)クローンをFirebaseで実装する際のスキーマ例(多分こんな感じなんだと思う。)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
sites: { | |
boards: { | |
0: { | |
name: 'ニュース速報', | |
threads: { | |
0: { | |
name: 'XXXXした結果wwww', | |
res: { | |
0: { | |
uuid: xxxxxx, | |
name: null, | |
email: null, | |
body: 'おれもうあかんわ...', | |
created_at: 1514118806 | |
}, | |
1: { | |
uuid: xxxxxx, | |
name: null, | |
email: null, | |
body: 'age', | |
created_at: 1514118806 | |
} | |
} | |
} | |
} | |
}, | |
1: { | |
name: 'ゲーム速報', | |
threads: { | |
0: { | |
name: 'XXXXした結果wwww', | |
res: { | |
0: { | |
name: 'email', | |
body: 'おれもうあかんわ...', | |
created_at: 1514118806 | |
}, | |
1: { | |
name: null, | |
email: 'sage', | |
body: 'sage', | |
created_at: 1514118806 | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment