2025-03-28 00:08:51 +00:00

12 lines
461 B
Python

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())