Skip to content

Commit

Permalink
refactor: remove entities (need to rebase after PR finished)
Browse files Browse the repository at this point in the history
  • Loading branch information
eoaksnes committed Nov 15, 2022
1 parent d055c27 commit b9703bf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions api/src/entities/TodoItem.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
from __future__ import annotations

from typing import List

from pydantic import BaseModel, Field

title_field = Field(
..., title="The title of the item", max_length=30, min_length=1, example="Read about clean architecture"
)


class User(BaseModel):
id: str
todos: List[TodoList]


class TodoList(BaseModel):
id: str
user: User
items: List[TodoItem]


class TodoItem(BaseModel):
id: str
user_id: str
Expand Down

0 comments on commit b9703bf

Please sign in to comment.