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