MarseyWorld/files/classes/transactions.py

17 lines
404 B
Python
Raw Normal View History

from sqlalchemy import Column
from sqlalchemy.sql.sqltypes import *
2022-09-13 15:22:18 +00:00
from files.classes import Base
2022-09-13 15:22:18 +00:00
class Transaction(Base):
__tablename__ = "transactions"
id = Column(String, primary_key=True)
created_utc = Column(Integer)
type = Column(String)
amount = Column(Integer)
email = Column(String)
claimed = Column(Boolean)
2022-09-13 15:22:18 +00:00
def __repr__(self):
return f"<{self.__class__.__name__}(id={self.id})>"