mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 17:05:51 -05:00
Adds more info about the d, n and u tags.
This commit is contained in:
parent
f0fe3e59f7
commit
cb8e7eb54c
4
41.md
4
41.md
|
@ -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>"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user