
from sqlalchemy import UUID, Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class FinancialTag(Base):
    __tablename__ = 'financial_tags'

    id = Column(Integer, primary_key=True, autoincrement=True)
    tag_name = Column(String(100), unique=True, nullable=False)
    # Store UUID for user_id
    user_id = Column(UUID(as_uuid=True), nullable=False)
    def __repr__(self):
        return f"<FinancialTag(id={self.id}, tag_name='{self.tag_name}')>"
