payment.py 572 B

123456789101112131415
  1. import datetime
  2. from sqlalchemy import Boolean, Column, String
  3. from sqlalchemy.sql.sqltypes import Integer, Text
  4. from app.db.base_class import Base
  5. class Payment(Base):
  6. id = Column(Integer, primary_key=True, nullable=False)
  7. order_id = Column(String(100), nullable=False)
  8. transaction_id = Column(String(200), nullable=False)
  9. create_time = Column(String(200), nullable=False, default=datetime.datetime.now)
  10. line_id = Column(String(200), nullable=False)
  11. nft_id = Column(Integer)
  12. amount = Column(Integer)
  13. payment_status = Column(String(255))