mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo-indexer.git
synced 2026-09-21 16:52:02 -07:00
Fixing reply overwrite issue
This commit is contained in:
@@ -138,7 +138,7 @@ Each store is a separate LevelDB with JSON values. Keys are txids, addresses, or
|
||||
| `status` | `status` | `syncedBlockHeight`, `chainBlockHeight`, `startBlockHeight` |
|
||||
| `posts` | txid | Author address, text, timestamp |
|
||||
| `postParents` | child txid | Parent txid (reply) |
|
||||
| `postChildren` | parent txid | Reverse index for replies |
|
||||
| `postChildren` | `parentTxid:childTxid` | One reply link per parent–child pair |
|
||||
| `likes` | like txid | Post txid, liker, optional tip |
|
||||
| `names` | address | Display name + provenance txid |
|
||||
| `profiles` | address | Profile text |
|
||||
|
||||
@@ -71,7 +71,7 @@ All routes are under `/level` with a consistent CRUD pattern generated from `ENT
|
||||
|-------|---------|-----------|-------------|
|
||||
| `post` | `txid` | `postData` | transaction id |
|
||||
| `postparent` | `txid` | `parentData` | child txid |
|
||||
| `postchild` | `txid` | `childData` | parent txid |
|
||||
| `postchild` | `key` | `childData` | `parentTxid:childTxid` |
|
||||
| `like` | `txid` | `likeData` | like txid |
|
||||
| `name` | `addr` | `nameData` | cash address |
|
||||
| `profile` | `addr` | `profileData` | cash address |
|
||||
@@ -187,7 +187,7 @@ Common fields on indexed documents:
|
||||
| profilePic | addr | `url`, `txid`, `seen`, `addr`, `blockHeight` |
|
||||
| like | txid | `addr`, `postTxid`, `seen`, `tip`, `blockHeight` |
|
||||
| follow | composite key | `followerAddr`, `followeePkHash`, `unfollow`, `txid`, `seen`, `blockHeight` |
|
||||
| postParent / postChild | txid | `parentTxid`, `childTxid`, `blockHeight` |
|
||||
| postParent / postChild | txid / `parentTxid:childTxid` | `parentTxid`, `childTxid`, `blockHeight` |
|
||||
| room | composite key | `room`, `txid`, `seen`, `type`, `blockHeight` (+ `addr` for follows) |
|
||||
| processError | txid | `error`, `ts`, `blockHeight` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user