add icon for user

This commit is contained in:
jaehwang committed 2026-09-16 13:04:49 +09:00
1 parent ef08b9f433
commit 78cf43d7ff
7 files changed
+72 -36

No files matched your search

+3
View File
@@ -12,6 +12,7 @@ from utils.database import Base
USER_ID_LENGTH = 64
EMAIL_LENGTH = 320
PICTURE_URL_LENGTH = 512
DEFAULT_JOB_LIMIT = 3
# 소유자를 모르는 잡의 자리. 나중에 admin의 sub로 덮어쓴다
@@ -24,6 +25,8 @@ class User(Base):
id: Mapped[str] = mapped_column(String(USER_ID_LENGTH), primary_key=True)
email: Mapped[str] = mapped_column(String(EMAIL_LENGTH), index=True)
name: Mapped[str] = mapped_column(String(255), default="")
# 구글 프로필 사진. 토큰에만 들어오는 값이라 로그인할 때 받아 둔다
picture_url: Mapped[str] = mapped_column(String(PICTURE_URL_LENGTH), default="")
# 만들 수 있는 총 잡 수. 무제한으로 둘 계정은 이 값을 크게 올린다
job_limit: Mapped[int] = mapped_column(Integer, default=DEFAULT_JOB_LIMIT)