feat: store generated invoices per mint

This commit is contained in:
Vlad Stan
2022-10-07 11:08:46 +03:00
parent 1ea8593de1
commit 91a981a9ac
5 changed files with 276 additions and 29 deletions
+15
View File
@@ -60,4 +60,19 @@ async def m001_initial(db):
cashu_id TEXT NOT NULL
);
"""
)
await db.execute(
"""
CREATE TABLE IF NOT EXISTS cashu.invoices (
cashu_id TEXT NOT NULL,
amount INTEGER NOT NULL,
pr TEXT NOT NULL,
hash TEXT NOT NULL,
issued BOOL NOT NULL,
UNIQUE (hash)
);
"""
)