Skip to content

Instantly share code, notes, and snippets.

@kyleawayan
Last active May 3, 2021 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyleawayan/0af9db6e7af1fbef25f57b066e95201f to your computer and use it in GitHub Desktop.
Save kyleawayan/0af9db6e7af1fbef25f57b066e95201f to your computer and use it in GitHub Desktop.
(outdated, need to update later)
Question
└── questions: firestore collection
└── [question id]: firestore doc
├── title: string
├── tags: Array<string>
├── userUid: string
├── displayName: string
├── timestamp: Date
├── markdown: string
├── counters: map
│ ├── votes: number
│ ├── answers: number
│ └── views: number
├── votes: firestore collection
│ └── [userUid]: firestore doc
│ └── state: number
├── questionComments: firestore collection
│ └── [comment id]: firestore doc
│ ├── userUid: string
│ ├── displayName: string
│ ├── markdown: string
│ ├── timestamp: Date
│ ├── counters: map
│ │ └── votes: number
│ └── votes: firestore collection
│ └── [userUid]: firestore doc
│ └── state: number
└── answers: firestore collection
└── [answer id]: firestore doc
├── userUid: string
├── displayName: string
├── markdown: string
├── timestamp: Date
├── counters: map
│ └── votes: number
├── votes: firestore collection
│ └── [userUid]: firestore doc
│ └── state: number
└── answerComments: firestore collection
└── [comment id]: firestore doc
├── userUid: string
├── displayName: string
├── markdown: string
├── timestamp: Date
├── counters: map
│ └── votes: number
└── votes: firestore collection
└── [userUid]: firestore doc
└── state: number
questions: firestore collection
[question id]: firestore doc
title: string
tags: Array<string>
userUid: string
displayName: string
timestamp: Date
markdown: string
counters: map
votes: number
answers: number
views: number
votes: firestore collection
[userUid]: firestore doc
state: number
questionComments: firestore collection
[comment id]: firestore doc
userUid: string
displayName: string
markdown: string
timestamp: Date
counters: map
votes: number
votes: firestore collection
[userUid]: firestore doc
state: number
answers: firestore collection
[answer id]: firestore doc
userUid: string
displayName: string
markdown: string
timestamp: Date
counters: map
votes: number
votes: firestore collection
[userUid]: firestore doc
state: number
answerComments: firestore collection
[comment id]: firestore doc
userUid: string
displayName: string
markdown: string
timestamp: Date
counters: map
votes: number
votes: firestore collection
[userUid]: firestore doc
state: number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment