INNER CODE UNIT · Python

Books

marty331/fasthtmx · models/models.py:18

class Books(Base):
    __tablename__ = "books"

    id = Column(Integer, primary_key=True, index=True)
    title = Column(String, index=True)
    pages = Column(String, index=True)
    author_id = Column(Integer, ForeignKey("authors.id"))

    author = relationship("Authors", back_populates="books")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…