mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 07:07:48 +01:00
20 lines
459 B
Python
20 lines
459 B
Python
|
async def m001_initial(db):
|
||
|
"""
|
||
|
Initial copilot table.
|
||
|
"""
|
||
|
|
||
|
await db.execute(
|
||
|
"""
|
||
|
CREATE TABLE IF NOT EXISTS copilots (
|
||
|
id TEXT NOT NULL PRIMARY KEY,
|
||
|
user TEXT,
|
||
|
title TEXT,
|
||
|
animation INTEGER,
|
||
|
show_message TEXT,
|
||
|
amount INTEGER,
|
||
|
lnurl_title TEXT,
|
||
|
timestamp TIMESTAMP NOT NULL DEFAULT (strftime('%s', 'now'))
|
||
|
);
|
||
|
"""
|
||
|
)
|