nss-evening-cohort-12 / nutshell-muntjac

Whalom Park
0 stars 3 forks source link

visitorLog Data file #105

Closed medlenmage closed 4 years ago

medlenmage commented 4 years ago

Dev Story


As a user i should see a json/data file that has been imported into firebase that contains/holds the data of all activity and spending by all visitors. When the buy button is clicked and all visitors buy something at random ( #94 ) what they buy will be pushed to this data file with the visitor, what they bought, and how much it cost.

AC


When the dev views the code they should see a json file name visitorLog When the dev views this data it should have properties for the visitors name, activity, and expenditure) Then the dev should see on firebase where the json file has been imported Finally any new purchase of a ride/vendor ( #94 ) will push that data from each visitor to this file

To Do


Base Data


{

       "visitorLog1": {
          "visitor": "",
           "activity": "",
           "expenditure": (this will be an integer)
    }

}

ERD


image

medlenmage commented 4 years ago

@luketlancaster visitorLog. i think this is the jist of what you were saying right?

luketlancaster commented 4 years ago

how are you going to find which visitor the items in the log are for?

medlenmage commented 4 years ago

i didn't know i was putting that in this card? i was thinking this was just for the initial setup data.

luketlancaster commented 4 years ago

currently the way that you have this data setup there's no way to tell which visitor has which which logs...where is that data stored? Where's the relationship? How are you going to find which visitor the items in the log are for?

luketlancaster commented 4 years ago

is this new table in the ERD?

medlenmage commented 4 years ago

ok just updated the erd for it and added the table for this. i'll rework this card a little later on today