diff --git a/41.md b/41.md index e4d38957..dc64678a 100644 --- a/41.md +++ b/41.md @@ -6,20 +6,20 @@ Relational Database `draft` `optional` -This NIP offers a plug-and-play method to export/sync information from existing systems using relational databases into Nostr. It is an application specific type where interoperability with other Nostr apps is not expected. +This NIP offers a plug-and-play method to sync information from existing systems using relational databases into Nostr. It is an application-specific NIP where interoperability with other Nostr apps is not expected. Event kind `31200` represents a row in a database. Each value of the row is added as a tag whose name is the column's name. -The `d` tag is used for the row's primary key, the `n` tag places the row into an unbound list to represent the table and the `u` tag references a database name. +The `d` tag is used for the row's primary key, the `n` tag places the row into an unbound list to represent the table and the `u` tag references a database name. Clients MAY choose their app-name as a database name to improve the likelyhood of unique table names. -Values can be public or encrypted to the user. +Values can be public or [NIP-44](44.md) encrypted to the user and placed in the `.content` field. ```js { "kind": 31200, "tags": [ ["d", ""], - ["n", ""], + ["n", ""], ["u", ""], ["", ""], ["", ""] @@ -41,4 +41,4 @@ Since column names are arbitraryly defined by the data source, such data source Inserts and updates are supported via Nostr's regular signing operations and deletions via [NIP-09](09.md). -The pubkey MAY be own by the system and represent several users from that system. \ No newline at end of file +The event's `pubkey` MAY be own by the system itself and represent several users from that system. \ No newline at end of file