add highload wallet
This commit is contained in:
1 parent
0b309c5eb4
commit
b8a5cf4965
8 files changed
+101
-5
No files matched your search
@@ -11,3 +11,5 @@ from app.core.models.content.user_content import UserContent, UserAction
|
||||
from app.core.models._config import ServiceConfigValue, ServiceConfig
|
||||
from app.core.models.asset import Asset
|
||||
from app.core.models.my_network import KnownNode, KnownNodeIncident, RemoteContentIndex
|
||||
from app.core.models.promo import PromoAction
|
||||
from app.core.models.tasks import BlockchainTask
|
||||
@@ -0,0 +1,16 @@
|
||||
from .base import AlchemyBase
|
||||
from sqlalchemy import Column, BigInteger, Integer, String, ForeignKey, DateTime, JSON, Boolean
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class PromoAction:
|
||||
__tablename__ = 'promo_actions'
|
||||
|
||||
id = Column(Integer, autoincrement=True, primary_key=True)
|
||||
user_id = Column(String(512), nullable=False)
|
||||
user_internal_id = Column(Integer, ForeignKey('users.id'), nullable=True)
|
||||
|
||||
action_type = Column(String(64), nullable=False) # Type of action, e.g., 'referral', 'discount'
|
||||
action_ref = Column(String(512), nullable=False) # Reference to the action, e.g., promo code
|
||||
|
||||
created = Column(DateTime, nullable=False, default=datetime.now)
|
||||
@@ -0,0 +1,24 @@
|
||||
from .base import AlchemyBase
|
||||
from sqlalchemy import Column, BigInteger, Integer, String, ForeignKey, DateTime, JSON, Boolean
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class BlockchainTask:
|
||||
__tablename__ = 'blockchain_tasks'
|
||||
|
||||
id = Column(Integer, autoincrement=True, primary_key=True)
|
||||
|
||||
destination = Column(String(1024), nullable=False)
|
||||
payload = Column(String(1024), nullable=False)
|
||||
|
||||
epoch = Column(Integer, nullable=True)
|
||||
seqno = Column(Integer, nullable=True)
|
||||
|
||||
created = Column(DateTime, nullable=False, default=datetime.now)
|
||||
updated = Column(DateTime, nullable=False, default=datetime.now)
|
||||
|
||||
meta = Column(JSON, nullable=False, default={})
|
||||
status = Column(String(256), nullable=False)
|
||||
|
||||
transaction_hash = Column(String(1024), nullable=True)
|
||||
transaction_lt = Column(String(1024), nullable=True)
|
||||
Reference in new issue
Block a user