feat: implement auth scopes

This commit is contained in:
2025-03-05 09:56:04 +01:00
parent d61bea3c86
commit b8c4190072
3 changed files with 39 additions and 10 deletions

1
db.py
View File

@@ -69,6 +69,7 @@ class User(SQLModel, table=True):
disabled: bool | None = None
hashed_password: str | None = None
player_id: int | None = Field(default=None, foreign_key="player.id")
scopes: str = ""
SQLModel.metadata.create_all(engine)