Skip to content

Commit 5844809

Browse files
committed
refactor
1 parent 93e0477 commit 5844809

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

backend/app/models/overlay.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
from sqlmodel import SQLModel, Field
2-
import uuid as uuid_pkg
2+
from uuid import UUID, uuid4
33

44

55
class OverlayBase(SQLModel):
6-
riotId: str
7-
hdevApiKey: str
8-
# hdevKey: str
9-
# textColor: str
10-
# primaryColor: str
11-
# bgColor: str
12-
# progressRankColor: str
13-
# progressRankBgColor: str
14-
# alphaBg: bool
15-
# alphaGradBg: bool
16-
# wlStat: bool
17-
# progressRank: bool
18-
# lastMatchPoints: bool
6+
riot_id: str
7+
hdev_api_key: str
8+
# hdev_key: str
9+
# text_color: str
10+
# primary_color: str
11+
# bg_color: str
12+
# progress_rank_color: str
13+
# progress_rank_bg_color: str
14+
# alpha_bg: bool
15+
# alpha_grad_bg: bool
16+
# wl_stat: bool
17+
# progress_rank: bool
18+
# last_match_points: bool
1919

2020

2121
class Overlay(OverlayBase, table=True):
22-
uuid: uuid_pkg.UUID = Field(
23-
default_factory=uuid_pkg.uuid4,
22+
uuid: UUID = Field(
23+
default_factory=uuid4,
2424
primary_key=True,
2525
index=True,
2626
nullable=False,
2727
)
2828

2929

3030
class OverlayCreate(OverlayBase):
31-
pass
31+
pass

0 commit comments

Comments
 (0)