replace legacy ratings route with group ratings
This commit is contained in:
parent
a39a0e6442
commit
75391b1ca2
6 changed files with 207 additions and 16 deletions
|
|
@ -143,3 +143,13 @@ class User:
|
|||
id: ULID = field(default_factory=ULID)
|
||||
imdb_id: str = None
|
||||
name: str = None # canonical user name
|
||||
|
||||
|
||||
@dataclass
|
||||
class Group:
|
||||
_table: ClassVar[str] = "groups"
|
||||
|
||||
id: ULID = field(default_factory=ULID)
|
||||
name: str = None
|
||||
secret: str = None
|
||||
users: list[dict[str, str]] = field(default_factory=list)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue