Skip to content

Post Design

Adam Chao edited this page Dec 16, 2020 · 3 revisions

Overview

The Post data type should contain the following fields (not all will be visible to the user)

  • Title
  • Author
  • Timestamp
  • Post ID - MUST BE UNIQUE!
  • OpenGraph tags
  • Points

Link posts

Link posts inherit base posts and include the additional qualities

  • Link destination
  • Tags (array)

Text posts

Text posts inherit base posts but contain no links, only markdown in plaintext

  • Tags (array)
  • Body

Media posts

Media posts inherit link posts but include an expando (method tbd)

  • Thumbnail link (method tbd)

Wishlist

  • Are there any additional post types? The idea is to keep the number of types small so that data storage would be easy. Is something missing?
  • Any additional metadata fields missing from any of these types?