from sqlalchemy import Column, ForeignKey, Integer, String, Text
from sqlalchemy.orm import relationship
from app.api.db.database import Base

# Optional imports
# from typing import Optional

class User(Base):
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True, index=True)
    # Add relevant columns based on project context
    # email = Column(String, unique=True, nullable=False)
    # password = Column(String, nullable=False)
    # full_name = Column(String, nullable=False)
    # bio = Column(Text, nullable=True)

    # Add relationships if applicable
    # posts = relationship("Post", back_populates="author")

    # Optional __repr__ method
    # def __repr__(self):
    #     return f"User(id={self.id}, email='{self.email}', full_name='{self.full_name}')"