From b9703bf1bb486f1ac1a27d30cc2b252e61737129 Mon Sep 17 00:00:00 2001 From: Eirik Ola Aksnes Date: Tue, 15 Nov 2022 10:46:21 +0100 Subject: [PATCH] refactor: remove entities (need to rebase after PR finished) --- api/src/entities/TodoItem.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/api/src/entities/TodoItem.py b/api/src/entities/TodoItem.py index 0327d383..09b0fc8b 100644 --- a/api/src/entities/TodoItem.py +++ b/api/src/entities/TodoItem.py @@ -1,7 +1,5 @@ from __future__ import annotations -from typing import List - from pydantic import BaseModel, Field title_field = Field( @@ -9,17 +7,6 @@ ) -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