fastapi/sql_app/models.py

26 lines
732 B
Python

from decimal import Decimal
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship
from .database import Base
class Queue(Base):
__tablename__ = "queue"
id = Column(Integer, primary_key=True, index=True)
txhash = Column(String, unique=True, index=True)
accountId = Column(Integer)
method = Column(String)
fee = Column(Decimal)
status = Column(Integer)
confirmations = Column(Integer)
callback_url = Column(String)
local_address = Column(String)
remote_address = Column(String)
balance = Column(Decimal)
callback_requirement = Column(Integer)
unixtime = Column(Integer)
date = Column(String)
ip = Column(String)