Destinia / Vision

0 stars 0 forks source link

the structure of Firestore database #4

Open IanChen83 opened 6 years ago

IanChen83 commented 6 years ago

Currently (as in PR #3 ) each sequence is store in one document, in the format of

{
  name: '<seq name>',
  values: [
    {
      timestamp: '<timestamp>',
      value: '<value>'
    },
    ...
  ]
}

and all documents live in a single collection. I think we can create different collections for development and production environments.

Any idea or comment about the format of sequences? Is there any other information we need to store?