2022-11-17 20:00:19 +00:00
|
|
|
from sqlalchemy import Column
|
|
|
|
from sqlalchemy.sql.sqltypes import *
|
2022-09-13 15:22:18 +00:00
|
|
|
|
2022-11-17 20:00:19 +00:00
|
|
|
from files.classes import Base
|
2022-09-13 15:22:18 +00:00
|
|
|
|
2022-11-17 20:00:19 +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
|
|
|
|
2022-11-17 20:00:19 +00:00
|
|
|
def __repr__(self):
|
2022-11-29 21:02:38 +00:00
|
|
|
return f"<{self.__class__.__name__}(id={self.id})>"
|