From accb0f24d7991b4f871e84c40f48ac01da855c00 Mon Sep 17 00:00:00 2001 From: taki0412 Date: Thu, 20 Oct 2022 20:23:10 +0900 Subject: [PATCH] =?UTF-8?q?Add=20ContentMessage=20=EC=B6=94=EA=B0=80=20(#3?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- recommender_system/core/models/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/recommender_system/core/models/__init__.py b/recommender_system/core/models/__init__.py index e69de29..134495e 100644 --- a/recommender_system/core/models/__init__.py +++ b/recommender_system/core/models/__init__.py @@ -0,0 +1,9 @@ +# Import Library +from typing import Optional, List +from pydantic import BaseModel +from sqlalchemy import Column, String + +class ContentMessage(BaseModel): + text: Column(String) + images: Optional[List[Column(String)]] + video: Optional[Column(String)] \ No newline at end of file