ocean_provider/models.py
#
# Copyright 2023 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
from sqlalchemy import Column, String
from .database import Base
class UserNonce(Base):
"""
Table for storing the nonce values for the Eth account addresses.
"""
__tablename__ = "user_nonce"
address = Column(String(255), nullable=False, primary_key=True, autoincrement=False)
nonce = Column(String(255), nullable=False)
class RevokedToken(Base):
"""
Table for storing the revoked jwt tokens.
"""
__tablename__ = "revoked_tokens"
token = Column(String(255), nullable=False, primary_key=True, autoincrement=False)