Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Create New DB Tables #46

Open
osilkin98 opened this issue Apr 8, 2020 · 0 comments
Open

Create New DB Tables #46

osilkin98 opened this issue Apr 8, 2020 · 0 comments
Labels

Comments

@osilkin98
Copy link
Contributor

Database needs a new table to accommodate:

  • Pinning comments api endpoint to track latest comments with claim_id or claim URLs #29
    • one-to-many relation PINS: CLAIM -> COMMENT
  • Channel Blocking
    • one-to-many relation BLOCKS: CHANNEL -> CHANNEL
  • Storing information about claims, including public keys, addresses, stake amounts, etc.
    • CLAIM
      • type
      • stake_amount
      • address
      • claim_id
      • name
      • signing_channel
  • CHANNEL
    • public_key
    • signature
    • public_key_id
  • Requires making a table CLAIM which stores claim_type, signing_channel, stake_amount
  • Action history (e.g. channel x edits comment y at time z)
    • either loose relation on table CHANNEL or a many-to-many relation between CHANNEL & COMMENT
      • action (creates, deletes, updates, hides, pins, etc.)
      • timestamp (good for modification time, etc.)
      • signature (of the action)
      • comment_id (if there is one)
  • Messages
    • dunno if this will either be a modified signed version of COMMENT or if this should be its own entity entirely
@osilkin98 osilkin98 added the Epic label Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant