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