from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship

from db.base import Base


class Account(Base):
    __tablename__ = "accounts"

    id = Column(Integer, primary_key=True)
    name = Column(String)

    transactions = relationship("Transaction", back_populates="account")

from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship

from db.base import Base


class Account(Base):
    __tablename__ = "accounts"

    id = Column(Integer, primary_key=True)
    name = Column(String)

    transactions = relationship("Transaction", back_populates="account")
