Skip to content

Instantly share code, notes, and snippets.

@jumbo-in-Jap
Created March 15, 2019 04:05
Show Gist options
  • Save jumbo-in-Jap/d86677355de2d26c94f5808983b5d362 to your computer and use it in GitHub Desktop.
Save jumbo-in-Jap/d86677355de2d26c94f5808983b5d362 to your computer and use it in GitHub Desktop.
firestore 相談
- users: collection
- user: sub_collection
- name: string
- imageURL: string
- introduction: string
- follor_user_ids: [number]
- follwer_user_ids: [number]
- videos: collection
- video: sub_collection
- title: string
- comedian_id: number
- description: string
- imageURL: string
- videoURL: string
- like_user_ids: [number]
- playlists: collection
- playlist: sub_collection
- name: string
- video_ids: string
- video_id: number
- is_curation: bool
- created_by: date
- user_id: string
- comedians: collection
- comedian: sub_collection
- id: number
- name: string
- imageURL: string
- office_id: number
- offices: collection
- office: sub_collection
- id: number
- name: string
- imageURL: string
- curators: collection
- curator: sub_collection
- id: number
- name: string
- imageURL: string
- 参照型はどう使うのか
- マイグレーションをどうするのか
- フォローみたいな参照はどう実現すればいいのか
- プレイリストが結構いろいろな属性を持つ
- ユーザーが作るものだったり、運営が作るものだったり、キュレーターが作るものだったり
- 上記のようにした場合、フォローしているユーザーはどのように取得されるのか
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment