feat: update account when join invoce paid

This commit is contained in:
Vlad Stan 2023-02-13 14:12:37 +02:00
parent 330fceaf34
commit bd5957b443
7 changed files with 138 additions and 11 deletions

View file

@ -45,3 +45,17 @@ async def m001_initial(db):
);
"""
)
await db.execute(
f"""
CREATE TABLE nostrrelay.accounts (
relay_id TEXT NOT NULL,
pubkey TEXT NOT NULL,
sats {db.big_int} DEFAULT 0,
storage {db.big_int} DEFAULT 0,
paid_to_join BOOLEAN DEFAULT false,
allowed BOOLEAN DEFAULT false,
blocked BOOLEAN DEFAULT false
);
"""
)