json - Firebase data structure: Attending school on date -



json - Firebase data structure: Attending school on date -

i looking first application using firebase backend.

i have 2 models, school , user. each user can sign date attend school, need date.

a sql table this:

schools: id, name

users: id, name, email

schools_users: id, school_id, user_id, date

what proper way of designing info construction in firebase?

since don't specify requirements, suggest starting naive mapping @ first:

root schools 1: "name of school1" 2: "name of school2" users: 1: { "name": "maeh", "email": "2523229@stackoverflow.com" } 2: { "name": "frank", "email": "209103@stackoverflow.com" } schools_users: 1_1: "20141031" 1_2: "20130102"

json nosql firebase

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -