payment.py 516 B

12345678910111213
  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. payload = Column(Text(), nullable=False)
  10. create_at = Column(String(200), nullable=False, default=datetime.datetime.now)
  11. line_id = Column(String(200), nullable=False)