mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-23 14:40:47 +01:00
Squashed 9 commits: * Added Discordbot Extension * Removed backup files * Fixing renaming wallet * added further description * further description index.html * import staticfiles * remove duplicate file * deleted changes in core
30 lines
639 B
Python
30 lines
639 B
Python
async def m001_initial(db):
|
|
"""
|
|
Initial users table.
|
|
"""
|
|
await db.execute(
|
|
"""
|
|
CREATE TABLE discordbot.users (
|
|
id TEXT PRIMARY KEY,
|
|
name TEXT NOT NULL,
|
|
admin TEXT NOT NULL,
|
|
discord_id TEXT
|
|
);
|
|
"""
|
|
)
|
|
|
|
"""
|
|
Initial wallets table.
|
|
"""
|
|
await db.execute(
|
|
"""
|
|
CREATE TABLE discordbot.wallets (
|
|
id TEXT PRIMARY KEY,
|
|
admin TEXT NOT NULL,
|
|
name TEXT NOT NULL,
|
|
"user" TEXT NOT NULL,
|
|
adminkey TEXT NOT NULL,
|
|
inkey TEXT NOT NULL
|
|
);
|
|
"""
|
|
)
|