new extension

just proof of concept
This commit is contained in:
iWarpBTC
2022-08-09 18:36:42 +02:00
committed by Gene Takavic
parent 05edd908f0
commit 519866efc9
11 changed files with 780 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from lnbits.helpers import urlsafe_short_hash
async def m001_initial(db):
await db.execute(
"""
CREATE TABLE boltcards.cards (
id TEXT PRIMARY KEY,
wallet TEXT NOT NULL,
card_name TEXT NOT NULL,
uid TEXT NOT NULL,
counter INT NOT NULL DEFAULT 0,
withdraw TEXT NOT NULL,
file_key TEXT NOT NULL DEFAULT '00000000000000000000000000000000',
meta_key TEXT NOT NULL DEFAULT '',
time TIMESTAMP NOT NULL DEFAULT """
+ db.timestamp_now
+ """
);
"""
)