feat: 오늘 한 장 — 하루 한 장 날씨 카드(22장)·실제 날씨 행운·연속 도장·저녁 체크인

- 로그인 안 하면 기기에, 로그인하면 계정에 남기고 로그인할 때 기기 기록을 옮긴다 (표 fortune_draw·day_log)
- 행운 시간은 오늘 남은 구간 중 날씨 점수가 가장 높은 때, 장소는 날씨 맞춤 데이트 명소, 1위 각은 지금 순위
- 체크인은 해 지기 2시간 전부터: 기분·다녀온 곳(명소·노을 명소·지금 하는 행사에서 찾거나 직접)·카드 맞았나
- GA4 fortune_draw·day_log
This commit is contained in:
minaChoi committed 2026-10-28 13:22:55 +09:00
1 parent 52a4830b08
commit c37773f48f
43 files changed
+1567 -6

No files matched your search

+23
View File
@@ -453,6 +453,29 @@ class MyGak(Base):
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
class FortuneDraw(Base):
__tablename__ = "fortune_draw"
user_id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), primary_key=True)
day: Mapped[date] = mapped_column(Date, primary_key=True)
card_code: Mapped[str] = mapped_column(String(32))
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
class DayLog(Base):
__tablename__ = "day_log"
user_id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), primary_key=True)
day: Mapped[date] = mapped_column(Date, primary_key=True)
mood: Mapped[int] = mapped_column(SmallInteger)
went_out: Mapped[bool] = mapped_column(Boolean)
place_name: Mapped[Optional[str]] = mapped_column(String(40), nullable=True)
place_ref: Mapped[Optional[str]] = mapped_column(String(40), nullable=True)
card_hit: Mapped[Optional[bool]] = mapped_column(Boolean, nullable=True)
region_code: Mapped[str] = mapped_column(String(10))
updated_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
class Talk(Base):
__tablename__ = "talk"