Files
darkfi/sql/cashier.sql
ghassmo ca85a4e59c cashierdb: attach token_id to the main keypair for tokens & change
asset_id name to token_id in schema and all functions
2021-09-28 14:57:57 +03:00

28 lines
747 B
SQL

CREATE TABLE IF NOT EXISTS main_keypairs(
keypair_id INTEGER PRIMARY KEY NOT NULL,
token_key_private BLOB NOT NULL,
token_key_public BLOB NOT NULL,
network BLOB NOT NULL,
token_id BLOB NOT NULL
);
CREATE TABLE IF NOT EXISTS deposit_keypairs(
keypair_id INTEGER PRIMARY KEY NOT NULL,
d_key_public BLOB NOT NULL,
token_key_private BLOB NOT NULL,
token_key_public BLOB NOT NULL,
network BLOB NOT NULL,
token_id BLOB NOT NULL,
confirm BLOB NOT NULL
);
CREATE TABLE IF NOT EXISTS withdraw_keypairs(
keypair_id INTEGER PRIMARY KEY NOT NULL,
token_key_public BLOB NOT NULL,
d_key_private BLOB NOT NULL,
d_key_public BLOB NOT NULL,
network BLOB NOT NULL,
token_id BLOB NOT NULL,
confirm BLOB NOT NULL
);