mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-27 16:45:16 +01:00
17 lines
378 B
Python
17 lines
378 B
Python
|
async def m001_initial(db):
|
||
|
"""
|
||
|
Initial split payment table.
|
||
|
"""
|
||
|
await db.execute(
|
||
|
"""
|
||
|
CREATE TABLE targets (
|
||
|
wallet TEXT NOT NULL,
|
||
|
source TEXT NOT NULL,
|
||
|
percent INTEGER NOT NULL CHECK (percent >= 0 AND percent <= 100),
|
||
|
alias TEXT,
|
||
|
|
||
|
UNIQUE (source, wallet)
|
||
|
);
|
||
|
"""
|
||
|
)
|