udpdate wallet function

This commit is contained in:
NW
2024-12-24 09:19:14 +00:00
parent 3129525a1e
commit c9bcb09221
6 changed files with 155 additions and 69 deletions

View File

@@ -109,7 +109,7 @@ const initDb = async () => {
wallet_type TEXT NOT NULL,
address TEXT NOT NULL,
derivation_path TEXT NOT NULL,
encrypted_mnemonic TEXT NOT NULL,
mnemonic TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE,
UNIQUE(user_id, wallet_type)