MarseyWorld/files/classes/transactions.py

17 lines
390 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)
created_utc = Column(Integer)
type = Column(String)
amount = Column(Integer)
email = Column(String)
def __repr__(self):
return f"<Transaction(id={self.id})>"