From 9c90381a891826ae357d101f675dbe719f4043ca Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sat, 29 Mar 2025 12:50:17 -0500 Subject: [PATCH] Add List model --- models/list.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 models/list.py diff --git a/models/list.py b/models/list.py new file mode 100644 index 0000000..30b33d6 --- /dev/null +++ b/models/list.py @@ -0,0 +1,12 @@ +from sqlalchemy import Column, String, DateTime, func +from sqlalchemy.dialects.postgresql import UUID +from core.database import Base + +class List(Base): + __tablename__ = "lists" + + id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4) + name = Column(String, nullable=False) + description = Column(String) + created_at = Column(DateTime, default=func.now()) + updated_at = Column(DateTime, default=func.now(), onupdate=func.now()) \ No newline at end of file