mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
allow user to set custom display names for peers and conversations
This commit is contained in:
parent
9ebf48b02b
commit
c73213d435
4 changed files with 140 additions and 5 deletions
14
database.py
14
database.py
|
|
@ -70,6 +70,20 @@ class Announce(BaseModel):
|
|||
table_name = "announces"
|
||||
|
||||
|
||||
class CustomDestinationDisplayName(BaseModel):
|
||||
|
||||
id = BigAutoField()
|
||||
destination_hash = CharField(unique=True) # unique destination hash
|
||||
display_name = CharField() # custom display name for the destination hash
|
||||
|
||||
created_at = DateTimeField(default=lambda: datetime.now(timezone.utc))
|
||||
updated_at = DateTimeField(default=lambda: datetime.now(timezone.utc))
|
||||
|
||||
# define table name
|
||||
class Meta:
|
||||
table_name = "custom_destination_display_names"
|
||||
|
||||
|
||||
class LxmfMessage(BaseModel):
|
||||
|
||||
id = BigAutoField()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue