Add User model

This commit is contained in:
Backend IM Bot 2025-03-26 14:32:57 +00:00
parent 399862d801
commit 80e856b19d

View File

@ -5,8 +5,6 @@ import uuid
class User(Base):
__tablename__ = "users"
id = Column(String, primary_key=True, default=lambda: str(uuid.uuid4()))
name = Column(String, nullable=True)
created_at = Column(DateTime, default=func.now())
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())