I wouldn't hardcode any specific business logic. I would just have a map<key as string, value as object> in each event so that the dev can add/remove whatever they want to store together with the event. The db just stores this map in the same way it stores the event fields.

Replies (1)

jb55's avatar
jb55 _@jb55.com 2 months ago
our metadata table achieves this now! you can add metadata of any type to nostrdb that is tied to a note id. currently powers our like/quote/reply counts