Skip to content

Commit

Permalink
Improve schema documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kderme committed May 24, 2022
1 parent d009c20 commit f0dd9db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cardano-db/src/Cardano/Db/Schema.hs
Expand Up @@ -574,7 +574,8 @@ schemaDocs =
SchemaVersionStageThree # "Set up database views, indices etc."

PoolHash --^ do
"A table for every unique pool key hash. The `id` field of this table is used as foreign keys in other tables."
"A table for every unique pool key hash. The `id` field of this table is used as foreign keys in other tables.\
\ The existance of an entry doesn't mean the pool is registered or in fact that is was ever registered."
PoolHashHashRaw # "The raw bytes of the pool hash."
PoolHashView # "The Bech32 encoding of the pool hash."

Expand Down Expand Up @@ -618,7 +619,9 @@ schemaDocs =
TxScriptSize # "The sum of the script sizes (in bytes) of scripts in the transaction."

StakeAddress --^ do
"A table of unique stake addresses. Can be an actual address or a script hash."
"A table of unique stake addresses. Can be an actual address or a script hash. \
\ The existance of an entry doesn't mean the address is registered or in fact that is was ever registered.\
\ For example a pool update may contain a stake address which was never registered."
StakeAddressHashRaw # "The raw bytes of the stake address hash."
StakeAddressView # "The Bech32 encoded version of the stake address."
StakeAddressScriptHash # "The script hash, in case this address is locked by a script."
Expand Down

0 comments on commit f0dd9db

Please sign in to comment.