Esempio n. 1
0
    default_fkey(['userid'], ['login.userid'], name='message_userid_fkey'),
)

Index('ind_message_otherid', message.c.otherid)
Index('ind_message_userid', message.c.userid)


oauth_bearer_tokens = Table(
    'oauth_bearer_tokens', metadata,
    Column('id', Integer(), primary_key=True, nullable=False),
    Column('clientid', String(length=32), nullable=False),
    Column('userid', Integer(), nullable=False),
    Column('scopes', ARRAY(Text()), nullable=False),
    Column('access_token', String(length=64), nullable=False, unique=True),
    Column('refresh_token', String(length=64), nullable=False, unique=True),
    Column('expires_at', ArrowColumn(), nullable=False),
    default_fkey(['clientid'], ['oauth_consumers.clientid'], name='oauth_bearer_tokens_clientid_fkey'),
    default_fkey(['userid'], ['login.userid'], name='oauth_bearer_tokens_userid_fkey'),
)


oauth_consumers = Table(
    'oauth_consumers', metadata,
    Column('clientid', String(length=32), primary_key=True, nullable=False),
    Column('description', Text(), nullable=False),
    Column('ownerid', Integer(), nullable=False),
    Column('grant_type', String(length=32), nullable=False),
    Column('response_type', String(length=32), nullable=False),
    Column('scopes', ARRAY(Text()), nullable=False),
    Column('redirect_uris', ARRAY(Text()), nullable=False),
    Column('client_secret', String(length=64), nullable=False),
Esempio n. 2
0
    default_fkey(['userid'], ['login.userid'], name='message_userid_fkey'),
)

Index('ind_message_otherid', message.c.otherid)
Index('ind_message_userid', message.c.userid)

oauth_bearer_tokens = Table(
    'oauth_bearer_tokens',
    metadata,
    Column('id', Integer(), primary_key=True, nullable=False),
    Column('clientid', String(length=32), nullable=False),
    Column('userid', Integer(), nullable=False),
    Column('scopes', ARRAY(Text()), nullable=False),
    Column('access_token', String(length=64), nullable=False, unique=True),
    Column('refresh_token', String(length=64), nullable=False, unique=True),
    Column('expires_at', ArrowColumn(), nullable=False),
    default_fkey(['clientid'], ['oauth_consumers.clientid'],
                 name='oauth_bearer_tokens_clientid_fkey'),
    default_fkey(['userid'], ['login.userid'],
                 name='oauth_bearer_tokens_userid_fkey'),
)

oauth_consumers = Table(
    'oauth_consumers',
    metadata,
    Column('clientid', String(length=32), primary_key=True, nullable=False),
    Column('description', Text(), nullable=False),
    Column('ownerid', Integer(), nullable=False),
    Column('grant_type', String(length=32), nullable=False),
    Column('response_type', String(length=32), nullable=False),
    Column('scopes', ARRAY(Text()), nullable=False),
Esempio n. 3
0
    default_fkey(['userid'], ['login.userid'], name='message_userid_fkey'),
)

Index('ind_message_otherid', message.c.otherid)
Index('ind_message_userid', message.c.userid)


oauth_bearer_tokens = Table(
    'oauth_bearer_tokens', metadata,
    Column('id', Integer(), primary_key=True, nullable=False),
    Column('clientid', String(length=32), nullable=False),
    Column('userid', Integer(), nullable=False),
    Column('scopes', ARRAY(Text()), nullable=False),
    Column('access_token', String(length=64), nullable=False, unique=True),
    Column('refresh_token', String(length=64), nullable=False, unique=True),
    Column('expires_at', ArrowColumn(), nullable=False),
    default_fkey(['clientid'], ['oauth_consumers.clientid'], name='oauth_bearer_tokens_clientid_fkey'),
    default_fkey(['userid'], ['login.userid'], name='oauth_bearer_tokens_userid_fkey'),
)


oauth_consumers = Table(
    'oauth_consumers', metadata,
    Column('clientid', String(length=32), primary_key=True, nullable=False),
    Column('description', Text(), nullable=False),
    Column('ownerid', Integer(), nullable=False),
    Column('grant_type', String(length=32), nullable=False),
    Column('response_type', String(length=32), nullable=False),
    Column('scopes', ARRAY(Text()), nullable=False),
    Column('redirect_uris', ARRAY(Text()), nullable=False),
    Column('client_secret', String(length=64), nullable=False),