Skip to content

Commit

Permalink
연도, 주 모델과 속성을 정의하고 캘린더 모델에 포함
Browse files Browse the repository at this point in the history
  • Loading branch information
qodot committed Sep 15, 2023
1 parent 5b21d04 commit eeb81e8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/domain/entity/calendar.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import datetime
import uuid

Expand All @@ -6,4 +8,15 @@ class Calendar:
id: uuid.UUID
name: str
birthday: datetime.date
lifespan: int
lifespan: int
years: list[Year]


class Year:
yearnum: int
weeks: list[Week]


class Week:
yearnum: int
weeknum: int

0 comments on commit eeb81e8

Please sign in to comment.