Greetings,
Is possible use a nested table in firebaseDatabase.set?
Example:
local numday = 20 -- this always change local today = "d" .. numday local device\_id = "device" .. system.getInfo( "deviceID" ) local oData = { [today] = { [device\_id] = { time = tonumber( os.time( os.date("!\*t") ) ), nome = USER\_NAME, mail = USER\_MAIL, vote = USER\_VOTE } } } firebaseDatabase.set( "vote", oData, function( ev ) if( ev.isError ) then native.showAlert( "Send.Err", json.encode( ev ) , {"Ok"} ) else native.showAlert( "Send.Ok", json.encode( ev ) , {"Ok"} ) end end )
Best regards.