mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 15:10:41 +01:00
34 lines
705 B
Python
34 lines
705 B
Python
|
async def m001_initial(db):
|
||
|
"""
|
||
|
Initial cashu table.
|
||
|
"""
|
||
|
await db.execute(
|
||
|
"""
|
||
|
CREATE TABLE cashu.cashu (
|
||
|
id TEXT PRIMARY KEY,
|
||
|
wallet TEXT NOT NULL,
|
||
|
name TEXT NOT NULL,
|
||
|
tickershort TEXT DEFAULT 'sats',
|
||
|
fraction BOOL,
|
||
|
maxsats INT,
|
||
|
coins INT,
|
||
|
keyset_id TEXT NOT NULL,
|
||
|
issued_sat INT
|
||
|
);
|
||
|
"""
|
||
|
)
|
||
|
|
||
|
"""
|
||
|
Initial cashus table.
|
||
|
"""
|
||
|
await db.execute(
|
||
|
"""
|
||
|
CREATE TABLE cashu.pegs (
|
||
|
id TEXT PRIMARY KEY,
|
||
|
wallet TEXT NOT NULL,
|
||
|
inout BOOL NOT NULL,
|
||
|
amount INT
|
||
|
);
|
||
|
"""
|
||
|
)
|