introduce known_coin_id, alas not yet used

This commit is contained in:
Christian Grothoff 2020-07-08 12:35:50 +02:00
parent 81fec09268
commit 1ca062fc7a
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -168,7 +168,8 @@ CREATE INDEX IF NOT EXISTS reserves_out_for_get_withdraw_info
CREATE TABLE IF NOT EXISTS known_coins
(coin_pub BYTEA NOT NULL PRIMARY KEY CHECK (LENGTH(coin_pub)=32)
(known_coin_id BIGSERIAL UNIQUE
,coin_pub BYTEA NOT NULL PRIMARY KEY CHECK (LENGTH(coin_pub)=32)
,denom_pub_hash BYTEA NOT NULL REFERENCES denominations (denom_pub_hash) ON DELETE CASCADE
,denom_sig BYTEA NOT NULL
);