MarseyWorld/files/classes/transactions.py

19 lines
419 B
Python
Raw Normal View History

2022-09-13 15:22:18 +00:00
from files.helpers.const import KOFI_TOKEN
if KOFI_TOKEN:
from sqlalchemy import *
from files.__main__ import Base
class Transaction(Base):
2022-09-13 16:53:19 +00:00
__tablename__ = "transactions"
2022-09-13 15:22:18 +00:00
id = Column(String, primary_key=True)
2022-09-19 19:39:00 +00:00
created_utc = Column(Integer)
2022-09-13 15:22:18 +00:00
type = Column(String)
amount = Column(Integer)
email = Column(String)
2022-09-18 00:28:09 +00:00
claimed = Column(Boolean)
2022-09-13 15:22:18 +00:00
def __repr__(self):
return f"<Transaction(id={self.id})>"