class OAuthAuthorizationCode(BaseModel): code = CharField(index=True, unique=True, null=True) code_name = CharField(index=True, unique=True) code_credential = CredentialField()
class OAuthAccessToken(BaseModel): token_name = CharField(index=True, unique=True) token_code = CredentialField() access_token = CharField(index=True)