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):
|
2022-09-29 05:43:29 +00:00
|
|
|
return f"<Transaction(id={self.id})>"
|