mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
16 lines
392 B
Python
16 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)
|
|
);
|
|
"""
|
|
)
|