feat: update account when join invoce paid
This commit is contained in:
parent
330fceaf34
commit
bd5957b443
7 changed files with 138 additions and 11 deletions
13
models.py
13
models.py
|
|
@ -310,3 +310,16 @@ class NostrFilter(BaseModel):
|
|||
class RelayJoin(BaseModel):
|
||||
relay_id: str
|
||||
pubkey: str
|
||||
|
||||
|
||||
class NostrAccount(BaseModel):
|
||||
pubkey: str
|
||||
sats = 0
|
||||
storage = 0
|
||||
paid_to_join = False
|
||||
allowed = False
|
||||
blocked = False
|
||||
|
||||
@classmethod
|
||||
def from_row(cls, row: Row) -> "NostrAccount":
|
||||
return cls(**dict(row))
|
||||
Loading…
Add table
Add a link
Reference in a new issue