From e99f45bed257f05fcb087d28a2d6149cb3f37584 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 00:08:51 +0000 Subject: [PATCH] Add None model --- models/none.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 models/none.py diff --git a/models/none.py b/models/none.py new file mode 100644 index 0000000..11b81f6 --- /dev/null +++ b/models/none.py @@ -0,0 +1,12 @@ +from sqlalchemy import Column, String, DateTime +from sqlalchemy.sql import func +from core.database import Base +import uuid + +class YolooMessage(Base): + __tablename__ = "yoloo_messages" + + id = Column(String, primary_key=True, default=lambda: str(uuid.uuid4())) + message = Column(String, default="yoloo!!", nullable=False) + created_at = Column(DateTime, default=func.now()) + updated_at = Column(DateTime, default=func.now(), onupdate=func.now()) \ No newline at end of file