change user to usermedia and add new user
This commit is contained in:
parent
abafe60058
commit
f902efaf88
5 changed files with 178 additions and 31 deletions
|
@ -16,13 +16,25 @@ class RoomOrderBy(Enum):
|
|||
HISTORY_VISIBILITY = "history_visibility"
|
||||
STATE_EVENTS = "state_events"
|
||||
|
||||
class UserOrderBy(Enum):
|
||||
"""Available user ordering options."""
|
||||
class UserMediaOrderBy(Enum):
|
||||
"""Available user ordering options for media."""
|
||||
USER_ID = "user_id"
|
||||
DISPLAY_NAME = "display_name"
|
||||
MEDIA_LENGTH = "media_length"
|
||||
MEDIA_COUNT = "media_count"
|
||||
|
||||
class UserOrderBy(Enum):
|
||||
"""Available user ordering options."""
|
||||
NAME = "name"
|
||||
# IS_GUEST = "is_guest"
|
||||
# ADMIN = "admin"
|
||||
# USER_TYPE = "user_type"
|
||||
# DEACTIVATED = "deactivated"
|
||||
# SHADOW_BANNED = "shadow_banned"
|
||||
# DISPLAY_NAME = "display_name"
|
||||
# AVATAR_URL = "avatar_url"
|
||||
CREATION_TS = "creation_ts"
|
||||
# LAST_SEEN_TS = "last_seen_ts"
|
||||
|
||||
class Direction(Enum):
|
||||
"""Sort direction."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue