示例#1
0
class OAuthAuthorizationCode(BaseModel):
    code = CharField(index=True, unique=True, null=True)
    code_name = CharField(index=True, unique=True)
    code_credential = CredentialField()
示例#2
0
class OAuthAccessToken(BaseModel):
    token_name = CharField(index=True, unique=True)
    token_code = CredentialField()
    access_token = CharField(index=True)