Adds more info about the d, n and u tags.

This commit is contained in:
Vitor Pamplona 2024-04-09 17:27:05 -04:00
parent f0fe3e59f7
commit cb8e7eb54c

4
41.md
View File

@ -10,13 +10,15 @@ This NIP offers a plug-and-play method to export/sync information from existing
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. 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 and the optional `u` tag references a database name.
Values can be public or encrypted to the user. Values can be public or encrypted to the user.
```js ```js
{ {
"kind": 31200, "kind": 31200,
"tags": [ "tags": [
["d", "<row-private-key>"] ["d", "<row-primary-key>"]
["n", "<table-name>"] ["n", "<table-name>"]
["u", "<database-name>"] ["u", "<database-name>"]
["<column-name>", "<column-row-value>"] ["<column-name>", "<column-row-value>"]