nft.py 493 B

123456789101112131415
  1. from sqlalchemy import Boolean, Column, String
  2. from sqlalchemy.sql.sqltypes import Integer
  3. from app.db.base_class import Base
  4. class Nft(Base):
  5. id = Column(Integer, primary_key=True, nullable=False)
  6. hash = Column(String(200), unique=True)
  7. imgurl = Column(String(200))
  8. userid = Column(String(200))
  9. title = Column(String(200))
  10. context = Column(String(200))
  11. is_active = Column(Boolean(), default=True)
  12. category = Column(String(100))
  13. uid = Column(String(200))