add comments to SQL
This commit is contained in:
parent
c4f95be22a
commit
7e75bc6f81
1 changed files with 13 additions and 9 deletions
|
|
@ -1,16 +1,19 @@
|
||||||
\c card_db
|
\c card_db
|
||||||
|
|
||||||
INSERT INTO cards (
|
INSERT INTO cards (
|
||||||
aes_cmac,
|
lock_key, /* this is key 0 on the card */
|
||||||
uid,
|
aes_cmac, /* this is key 2 on the card */
|
||||||
last_counter_value,
|
uid, /* this can be discovered from the service log */
|
||||||
lnurlw_request_timeout_sec,
|
last_counter_value, /* can start at zero and will be updated on first use (before issue) */
|
||||||
enable_flag,
|
lnurlw_request_timeout_sec, /* 60 seconds by default */
|
||||||
tx_limit_sats,
|
enable_flag, /* useful for quickly switching card hosting on/off */
|
||||||
day_limit_sats,
|
tx_limit_sats, /* set at a reasonable value for small test payments in 2022 */
|
||||||
card_description
|
day_limit_sats, /* set at a reasonable value for small test payments in 2022 */
|
||||||
|
card_description, /* to store a human readable card description (optional) */
|
||||||
|
one_time_code_used /* used to indicate if the one_time_code for card creation is live */
|
||||||
)
|
)
|
||||||
VALUES (
|
VALUES (
|
||||||
|
'00000000000000000000000000000000',
|
||||||
'00000000000000000000000000000000',
|
'00000000000000000000000000000000',
|
||||||
'00000000000000',
|
'00000000000000',
|
||||||
0,
|
0,
|
||||||
|
|
@ -18,5 +21,6 @@ INSERT INTO cards (
|
||||||
'Y',
|
'Y',
|
||||||
1000,
|
1000,
|
||||||
10000,
|
10000,
|
||||||
'bolt card'
|
'bolt card',
|
||||||
|
'Y'
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue