You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2026-01-03 17:02:28 +03:00
2783 lines
91 KiB
JSON
2783 lines
91 KiB
JSON
{
|
|
"db": "PostgreSQL",
|
|
"05b50b7ae0109063c50fe70e83635a31920e44a7fbaa2b4f07552ba2f83a28d7": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "encrypted_client_secret",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "redirect_uris!",
|
|
"ordinal": 2,
|
|
"type_info": "TextArray"
|
|
},
|
|
{
|
|
"name": "grant_type_authorization_code",
|
|
"ordinal": 3,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "grant_type_refresh_token",
|
|
"ordinal": 4,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "client_name",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "logo_uri",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "client_uri",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "policy_uri",
|
|
"ordinal": 8,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "tos_uri",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "jwks_uri",
|
|
"ordinal": 10,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "jwks",
|
|
"ordinal": 11,
|
|
"type_info": "Jsonb"
|
|
},
|
|
{
|
|
"name": "id_token_signed_response_alg",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "userinfo_signed_response_alg",
|
|
"ordinal": 13,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_auth_method",
|
|
"ordinal": 14,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_auth_signing_alg",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "initiate_login_uri",
|
|
"ordinal": 16,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
true,
|
|
null,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n c.oauth2_client_id,\n c.encrypted_client_secret,\n ARRAY(\n SELECT redirect_uri\n FROM oauth2_client_redirect_uris r\n WHERE r.oauth2_client_id = c.oauth2_client_id\n ) AS \"redirect_uris!\",\n c.grant_type_authorization_code,\n c.grant_type_refresh_token,\n c.client_name,\n c.logo_uri,\n c.client_uri,\n c.policy_uri,\n c.tos_uri,\n c.jwks_uri,\n c.jwks,\n c.id_token_signed_response_alg,\n c.userinfo_signed_response_alg,\n c.token_endpoint_auth_method,\n c.token_endpoint_auth_signing_alg,\n c.initiate_login_uri\n FROM oauth2_clients c\n\n WHERE c.oauth2_client_id = $1\n "
|
|
},
|
|
"0af182315b36766eca8e232280986bade0202d1b1d64160a99cd14eadcbfc25b": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "upstream_oauth_provider_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "issuer",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "scope",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "client_id",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "encrypted_client_secret",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_signing_alg",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_auth_method",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n upstream_oauth_provider_id,\n issuer,\n scope,\n client_id,\n encrypted_client_secret,\n token_endpoint_signing_alg,\n token_endpoint_auth_method,\n created_at\n FROM upstream_oauth_providers\n WHERE upstream_oauth_provider_id = $1\n "
|
|
},
|
|
"0b49cde0b7b79f79ec261502ab89bcffa81f9f5ed2f922a41b1718274b9e3073": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n u.user_id,\n u.username AS user_username,\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM users u\n\n LEFT JOIN user_emails ue\n USING (user_id)\n\n WHERE u.username = $1\n "
|
|
},
|
|
"1166343ad1563cb66ab387368f67320a53c34edf388bdb991359ebdf324497d5": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE user_emails\n SET confirmed_at = $2\n WHERE user_email_id = $1\n "
|
|
},
|
|
"1e7b1b7e06b5d97d81dc4a8524bb223c3dc7ddbbcce7cc2a142dbfbdd6a2902e": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE upstream_oauth_links\n SET user_id = $1\n WHERE upstream_oauth_link_id = $2\n "
|
|
},
|
|
"1eb6d13e75d8f526c2785749a020731c18012f03e07995213acd38ab560ce497": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_session_authentications\n (user_session_authentication_id, user_session_id, created_at)\n VALUES ($1, $2, $3)\n "
|
|
},
|
|
"1ee5cecfafd4726a4ebc08da8a34c09178e6e1e072581c8fca9d3d76967792cb": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO upstream_oauth_providers (\n upstream_oauth_provider_id,\n issuer,\n scope,\n token_endpoint_auth_method,\n token_endpoint_signing_alg,\n client_id,\n encrypted_client_secret,\n created_at\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n "
|
|
},
|
|
"2153118b364a33582e7f598acce3789fcb8d938948a819b15cf0b6d37edf58b2": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO compat_access_tokens\n (compat_access_token_id, compat_session_id, access_token, created_at, expires_at)\n VALUES ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"24d6154b138a5e9105b996d6447e45a5c208e157f6583b4220cf58813d6f436c": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_authorization_grant_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_created_at",
|
|
"ordinal": 1,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_cancelled_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_fulfilled_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_exchanged_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_scope",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_state",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_redirect_uri",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_response_mode",
|
|
"ordinal": 8,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_nonce",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_max_age",
|
|
"ordinal": 10,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 11,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_code",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_response_type_code",
|
|
"ordinal": 13,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_response_type_id_token",
|
|
"ordinal": 14,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_code_challenge",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_code_challenge_method",
|
|
"ordinal": 16,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_requires_consent",
|
|
"ordinal": 17,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id?",
|
|
"ordinal": 18,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_id?",
|
|
"ordinal": 19,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_created_at?",
|
|
"ordinal": 20,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_id?",
|
|
"ordinal": 21,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username?",
|
|
"ordinal": 22,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_id?",
|
|
"ordinal": 23,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_created_at?",
|
|
"ordinal": 24,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 25,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 26,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 27,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 28,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n og.oauth2_authorization_grant_id,\n og.created_at AS oauth2_authorization_grant_created_at,\n og.cancelled_at AS oauth2_authorization_grant_cancelled_at,\n og.fulfilled_at AS oauth2_authorization_grant_fulfilled_at,\n og.exchanged_at AS oauth2_authorization_grant_exchanged_at,\n og.scope AS oauth2_authorization_grant_scope,\n og.state AS oauth2_authorization_grant_state,\n og.redirect_uri AS oauth2_authorization_grant_redirect_uri,\n og.response_mode AS oauth2_authorization_grant_response_mode,\n og.nonce AS oauth2_authorization_grant_nonce,\n og.max_age AS oauth2_authorization_grant_max_age,\n og.oauth2_client_id AS oauth2_client_id,\n og.authorization_code AS oauth2_authorization_grant_code,\n og.response_type_code AS oauth2_authorization_grant_response_type_code,\n og.response_type_id_token AS oauth2_authorization_grant_response_type_id_token,\n og.code_challenge AS oauth2_authorization_grant_code_challenge,\n og.code_challenge_method AS oauth2_authorization_grant_code_challenge_method,\n og.requires_consent AS oauth2_authorization_grant_requires_consent,\n os.oauth2_session_id AS \"oauth2_session_id?\",\n us.user_session_id AS \"user_session_id?\",\n us.created_at AS \"user_session_created_at?\",\n u.user_id AS \"user_id?\",\n u.username AS \"user_username?\",\n usa.user_session_authentication_id AS \"user_session_last_authentication_id?\",\n usa.created_at AS \"user_session_last_authentication_created_at?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM\n oauth2_authorization_grants og\n LEFT JOIN oauth2_sessions os\n USING (oauth2_session_id)\n LEFT JOIN user_sessions us\n USING (user_session_id)\n LEFT JOIN users u\n USING (user_id)\n LEFT JOIN user_session_authentications usa\n USING (user_session_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n\n WHERE og.authorization_code = $1\n\n ORDER BY usa.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"262bee715889dc3e608639549600a131e641951ff979634e7c97afc74bbc1605": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_authorization_grants\n SET exchanged_at = $2\n WHERE oauth2_authorization_grant_id = $1\n "
|
|
},
|
|
"26a9391df9f1128673cdaf431fe8c5e4a83b576ddf7b02d92abfab6deadd4fa2": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Bool",
|
|
"Bool",
|
|
"Text",
|
|
"Jsonb",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_clients\n (oauth2_client_id,\n encrypted_client_secret,\n grant_type_authorization_code,\n grant_type_refresh_token,\n token_endpoint_auth_method,\n jwks,\n jwks_uri)\n VALUES\n ($1, $2, $3, $4, $5, $6, $7)\n "
|
|
},
|
|
"27a729b229491d179391b19b634f07291312bd238380c5a7ea0f60e9b71dfb14": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO users (user_id, username, created_at)\n VALUES ($1, $2, $3)\n "
|
|
},
|
|
"2ca7b990c11e84db62fb7887a2bc3410ec1eee2f6a0ec124db36575111970ca9": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "upstream_oauth_authorization_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "upstream_oauth_provider_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "upstream_oauth_link_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "state",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "code_challenge_verifier",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "nonce",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "id_token",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "completed_at",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 9,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n upstream_oauth_authorization_session_id,\n upstream_oauth_provider_id,\n upstream_oauth_link_id,\n state,\n code_challenge_verifier,\n nonce,\n id_token,\n created_at,\n completed_at,\n consumed_at\n FROM upstream_oauth_authorization_sessions\n WHERE upstream_oauth_authorization_session_id = $1\n AND upstream_oauth_link_id = $2\n "
|
|
},
|
|
"2e756fe7be50128c0acc5f79df3a084230e9ca13cd45bd0858f97e59da20006e": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE compat_sso_logins\n SET\n exchanged_at = $2\n WHERE\n compat_sso_login_id = $1\n "
|
|
},
|
|
"2fb8f1aef96571a6f3f6260d7836de99ff24ba1947747e08b0e8d64097507442": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz",
|
|
"Text",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE upstream_oauth_authorization_sessions\n SET upstream_oauth_link_id = $1,\n completed_at = $2,\n id_token = $3\n WHERE upstream_oauth_authorization_session_id = $4\n "
|
|
},
|
|
"360466ff599c67c9af2ac75399c0b536a22c1178972a0172b707bcc81d47357b": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO compat_refresh_tokens\n (compat_refresh_token_id, compat_session_id,\n compat_access_token_id, refresh_token, created_at)\n VALUES ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"3a19b087ae9e4dab770f102de1cb62628525fc72c7b052e1c146161ab088c02b": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n ue.user_email_id,\n ue.email AS \"user_email\",\n ue.created_at AS \"user_email_created_at\",\n ue.confirmed_at AS \"user_email_confirmed_at\"\n FROM user_emails ue\n\n WHERE ue.user_id = $1\n AND ue.email = $2\n "
|
|
},
|
|
"3df0838b660466f69ee681337fe6753133748defb715e53c8381badcc3e8bca9": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "last_authentication_id?",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "last_authd_at?",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 6,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 9,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n s.user_session_id,\n u.user_id,\n u.username,\n s.created_at,\n a.user_session_authentication_id AS \"last_authentication_id?\",\n a.created_at AS \"last_authd_at?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM user_sessions s\n INNER JOIN users u\n USING (user_id)\n LEFT JOIN user_session_authentications a\n USING (user_session_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n WHERE s.user_session_id = $1 AND s.finished_at IS NULL\n ORDER BY a.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"3e8f862ed05ce3e58c181ac6e0bd71e0a6a88419611af6f4117d14d9c36cb1ef": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_emails (user_email_id, user_id, email, created_at)\n VALUES ($1, $2, $3, $4)\n "
|
|
},
|
|
"42bfb0de5bbea2d580f1ff2322255731a4a5655ba80fc2dba0b55a0add8c55c0": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_sso_login_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_redirect_uri",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_fulfilled_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_exchanged_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id?",
|
|
"ordinal": 6,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_session_created_at?",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_finished_at?",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_device_id?",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_id?",
|
|
"ordinal": 10,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username?",
|
|
"ordinal": 11,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 12,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 13,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 14,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 15,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n cl.compat_sso_login_id,\n cl.login_token AS \"compat_sso_login_token\",\n cl.redirect_uri AS \"compat_sso_login_redirect_uri\",\n cl.created_at AS \"compat_sso_login_created_at\",\n cl.fulfilled_at AS \"compat_sso_login_fulfilled_at\",\n cl.exchanged_at AS \"compat_sso_login_exchanged_at\",\n cs.compat_session_id AS \"compat_session_id?\",\n cs.created_at AS \"compat_session_created_at?\",\n cs.finished_at AS \"compat_session_finished_at?\",\n cs.device_id AS \"compat_session_device_id?\",\n u.user_id AS \"user_id?\",\n u.username AS \"user_username?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM compat_sso_logins cl\n LEFT JOIN compat_sessions cs\n USING (compat_session_id)\n LEFT JOIN users u\n USING (user_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n WHERE cl.compat_sso_login_id = $1\n "
|
|
},
|
|
"43a5cafbdc8037e9fb779812a0793cf0859902aa0dc8d25d4c33d231d3d1118b": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_access_tokens\n (oauth2_access_token_id, oauth2_session_id, access_token, created_at, expires_at)\n VALUES\n ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"4693f2b9b3d51ff4a05e233b6667161ebc97f331d96bf5f1c61069e1c8492105": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"UuidArray",
|
|
"Uuid",
|
|
"TextArray"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_client_redirect_uris\n (oauth2_client_redirect_uri_id, oauth2_client_id, redirect_uri)\n SELECT id, $2, redirect_uri\n FROM UNNEST($1::uuid[], $3::text[]) r(id, redirect_uri)\n "
|
|
},
|
|
"46c5ae7052504bfd7b94f20e61b9cf92570779a794bccda23dd654fb8523f340": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "fulfilled_at!: DateTime<Utc>",
|
|
"ordinal": 0,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_authorization_grants AS og\n SET\n oauth2_session_id = os.oauth2_session_id,\n fulfilled_at = os.created_at\n FROM oauth2_sessions os\n WHERE\n og.oauth2_authorization_grant_id = $1\n AND os.oauth2_session_id = $2\n RETURNING fulfilled_at AS \"fulfilled_at!: DateTime<Utc>\"\n "
|
|
},
|
|
"47d4048365144c7bfc14790dfb8fa7f862d2952075a68cd5e90ac76d9e6d1388": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "upstream_oauth_link_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "upstream_oauth_provider_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "subject",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n upstream_oauth_link_id,\n upstream_oauth_provider_id,\n user_id,\n subject,\n created_at\n FROM upstream_oauth_links\n WHERE upstream_oauth_link_id = $1\n "
|
|
},
|
|
"47fff42fd9871f73baf3e3ebb9e296fa65f7bc99f94639891f29d56d204b659a": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_passwords (user_password_id, user_id, hashed_password, created_at)\n VALUES ($1, $2, $3, $4)\n "
|
|
},
|
|
"4f8ec19f3f1bfe0268fe102a24e5a9fa542e77eccbebdce65e6deb1c197adf36": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_access_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id!",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id!",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "scope!",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_session_id!",
|
|
"ordinal": 7,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_created_at!",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_id!",
|
|
"ordinal": 9,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username!",
|
|
"ordinal": 10,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_id?",
|
|
"ordinal": 11,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_created_at?",
|
|
"ordinal": 12,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 13,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 14,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 15,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 16,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n at.oauth2_access_token_id,\n at.access_token AS \"oauth2_access_token\",\n at.created_at AS \"oauth2_access_token_created_at\",\n at.expires_at AS \"oauth2_access_token_expires_at\",\n os.oauth2_session_id AS \"oauth2_session_id!\",\n os.oauth2_client_id AS \"oauth2_client_id!\",\n os.scope AS \"scope!\",\n us.user_session_id AS \"user_session_id!\",\n us.created_at AS \"user_session_created_at!\",\n u.user_id AS \"user_id!\",\n u.username AS \"user_username!\",\n usa.user_session_authentication_id AS \"user_session_last_authentication_id?\",\n usa.created_at AS \"user_session_last_authentication_created_at?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n\n FROM oauth2_access_tokens at\n INNER JOIN oauth2_sessions os\n USING (oauth2_session_id)\n INNER JOIN user_sessions us\n USING (user_session_id)\n INNER JOIN users u\n USING (user_id)\n LEFT JOIN user_session_authentications usa\n USING (user_session_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n\n WHERE at.access_token = $1\n AND at.revoked_at IS NULL\n AND os.finished_at IS NULL\n\n ORDER BY usa.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"51158bfcaa1a8d8e051bffe7c5ba0369bf53fb162f7622626054e89e68fc07bd": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "scope_token",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT scope_token\n FROM oauth2_consents\n WHERE user_id = $1 AND oauth2_client_id = $2\n "
|
|
},
|
|
"559a486756d08d101eb7188ef6637b9d24c024d056795b8121f7f04a7f9db6a3": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE compat_sessions cs\n SET finished_at = $2\n FROM compat_access_tokens ca\n WHERE ca.access_token = $1\n AND ca.compat_session_id = cs.compat_session_id\n AND cs.finished_at IS NULL\n RETURNING cs.compat_session_id\n "
|
|
},
|
|
"59439585536bb4e547a6cf58a8bc6ac735f29c225bcbeac7d371f09166789a73": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n u.user_id,\n u.username AS user_username,\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM users u\n\n LEFT JOIN user_emails ue\n USING (user_id)\n\n WHERE u.user_id = $1\n "
|
|
},
|
|
"5b5d5c82da37c6f2d8affacfb02119965c04d1f2a9cc53dbf5bd4c12584969a0": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_access_tokens\n WHERE expires_at < $1\n "
|
|
},
|
|
"5ccde09ee3fe43e7b492d73fa67708b5dcb2b7496c4d05bcfcf0ea63c7576d48": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n ue.user_email_id,\n ue.email AS \"user_email\",\n ue.created_at AS \"user_email_created_at\",\n ue.confirmed_at AS \"user_email_confirmed_at\"\n FROM user_emails ue\n\n WHERE ue.user_id = $1\n\n ORDER BY ue.email ASC\n "
|
|
},
|
|
"60d039442cfa57e187602c0ff5e386e32fb774b5ad2d2f2c616040819b76873e": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE compat_sso_logins\n SET\n compat_session_id = $2,\n fulfilled_at = $3\n WHERE\n compat_sso_login_id = $1\n "
|
|
},
|
|
"62d05e8e4317bdb180298737d422e64d161c5ad3813913a6f7d67a53569ea76a": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"UuidArray",
|
|
"Uuid",
|
|
"Uuid",
|
|
"TextArray",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_consents\n (oauth2_consent_id, user_id, oauth2_client_id, scope_token, created_at)\n SELECT id, $2, $3, scope_token, $5 FROM UNNEST($1::uuid[], $4::text[]) u(id, scope_token)\n ON CONFLICT (user_id, oauth2_client_id, scope_token) DO UPDATE SET refreshed_at = $5\n "
|
|
},
|
|
"647a2a5bbde39d0ed3931d0287b468bc7dedf6171e1dc6171a5d9f079b9ed0fa": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "hashed_password",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT up.hashed_password\n FROM user_passwords up\n WHERE up.user_id = $1\n ORDER BY up.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"64a56818dd16ac6368efe3e34196a77b7feda1eb87b696e0063a51bf50e499e5": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Timestamptz",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE user_sessions\n SET finished_at = $1\n WHERE user_session_id = $2\n "
|
|
},
|
|
"65c7600f1af07cb6ea49d89ae6fbca5374a57c5a866c8aadd7b75ed1d2d1d0cd": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "upstream_oauth_authorization_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "upstream_oauth_provider_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "upstream_oauth_link_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "state",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "code_challenge_verifier",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "nonce",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "id_token",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "completed_at",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 9,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "provider_issuer",
|
|
"ordinal": 10,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "provider_scope",
|
|
"ordinal": 11,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "provider_client_id",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "provider_encrypted_client_secret",
|
|
"ordinal": 13,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "provider_token_endpoint_auth_method",
|
|
"ordinal": 14,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "provider_token_endpoint_signing_alg",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "provider_created_at",
|
|
"ordinal": 16,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n ua.upstream_oauth_authorization_session_id,\n ua.upstream_oauth_provider_id,\n ua.upstream_oauth_link_id,\n ua.state,\n ua.code_challenge_verifier,\n ua.nonce,\n ua.id_token,\n ua.created_at,\n ua.completed_at,\n ua.consumed_at,\n up.issuer AS \"provider_issuer\",\n up.scope AS \"provider_scope\",\n up.client_id AS \"provider_client_id\",\n up.encrypted_client_secret AS \"provider_encrypted_client_secret\",\n up.token_endpoint_auth_method AS \"provider_token_endpoint_auth_method\",\n up.token_endpoint_signing_alg AS \"provider_token_endpoint_signing_alg\",\n up.created_at AS \"provider_created_at\"\n FROM upstream_oauth_authorization_sessions ua\n INNER JOIN upstream_oauth_providers up\n USING (upstream_oauth_provider_id)\n WHERE upstream_oauth_authorization_session_id = $1\n "
|
|
},
|
|
"6bf0da5ba3dd07b499193a2e0ddeea6e712f9df8f7f28874ff56a952a9f10e54": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_access_tokens\n SET revoked_at = $2\n WHERE oauth2_access_token_id = $1\n "
|
|
},
|
|
"7262f81a335a984c4051383d2ede7455ff65ed90fbd3151d625f8a21fd26cb05": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_email_confirmation_codes\n (user_email_confirmation_code_id, user_email_id, code, created_at, expires_at)\n VALUES ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"75a16693cabdf57012f741e789b19d0a0f96fcd1e41bb2af92f2991b722cc9f1": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_authorization_grant_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_created_at",
|
|
"ordinal": 1,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_cancelled_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_fulfilled_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_exchanged_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_scope",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_state",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_redirect_uri",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_response_mode",
|
|
"ordinal": 8,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_nonce",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_max_age",
|
|
"ordinal": 10,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 11,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_code",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_response_type_code",
|
|
"ordinal": 13,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_response_type_id_token",
|
|
"ordinal": 14,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_code_challenge",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_code_challenge_method",
|
|
"ordinal": 16,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_authorization_grant_requires_consent",
|
|
"ordinal": 17,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id?",
|
|
"ordinal": 18,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_id?",
|
|
"ordinal": 19,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_created_at?",
|
|
"ordinal": 20,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_id?",
|
|
"ordinal": 21,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username?",
|
|
"ordinal": 22,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_id?",
|
|
"ordinal": 23,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_created_at?",
|
|
"ordinal": 24,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 25,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 26,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 27,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 28,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n og.oauth2_authorization_grant_id,\n og.created_at AS oauth2_authorization_grant_created_at,\n og.cancelled_at AS oauth2_authorization_grant_cancelled_at,\n og.fulfilled_at AS oauth2_authorization_grant_fulfilled_at,\n og.exchanged_at AS oauth2_authorization_grant_exchanged_at,\n og.scope AS oauth2_authorization_grant_scope,\n og.state AS oauth2_authorization_grant_state,\n og.redirect_uri AS oauth2_authorization_grant_redirect_uri,\n og.response_mode AS oauth2_authorization_grant_response_mode,\n og.nonce AS oauth2_authorization_grant_nonce,\n og.max_age AS oauth2_authorization_grant_max_age,\n og.oauth2_client_id AS oauth2_client_id,\n og.authorization_code AS oauth2_authorization_grant_code,\n og.response_type_code AS oauth2_authorization_grant_response_type_code,\n og.response_type_id_token AS oauth2_authorization_grant_response_type_id_token,\n og.code_challenge AS oauth2_authorization_grant_code_challenge,\n og.code_challenge_method AS oauth2_authorization_grant_code_challenge_method,\n og.requires_consent AS oauth2_authorization_grant_requires_consent,\n os.oauth2_session_id AS \"oauth2_session_id?\",\n us.user_session_id AS \"user_session_id?\",\n us.created_at AS \"user_session_created_at?\",\n u.user_id AS \"user_id?\",\n u.username AS \"user_username?\",\n usa.user_session_authentication_id AS \"user_session_last_authentication_id?\",\n usa.created_at AS \"user_session_last_authentication_created_at?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM\n oauth2_authorization_grants og\n LEFT JOIN oauth2_sessions os\n USING (oauth2_session_id)\n LEFT JOIN user_sessions us\n USING (user_session_id)\n LEFT JOIN users u\n USING (user_id)\n LEFT JOIN user_session_authentications usa\n USING (user_session_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n\n WHERE og.oauth2_authorization_grant_id = $1\n\n ORDER BY usa.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"7756a60c36a64a259f7450d6eb77ee92303638ca374a63f23ac4944ccf9f4436": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "encrypted_client_secret",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "redirect_uris!",
|
|
"ordinal": 2,
|
|
"type_info": "TextArray"
|
|
},
|
|
{
|
|
"name": "grant_type_authorization_code",
|
|
"ordinal": 3,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "grant_type_refresh_token",
|
|
"ordinal": 4,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "client_name",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "logo_uri",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "client_uri",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "policy_uri",
|
|
"ordinal": 8,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "tos_uri",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "jwks_uri",
|
|
"ordinal": 10,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "jwks",
|
|
"ordinal": 11,
|
|
"type_info": "Jsonb"
|
|
},
|
|
{
|
|
"name": "id_token_signed_response_alg",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "userinfo_signed_response_alg",
|
|
"ordinal": 13,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_auth_method",
|
|
"ordinal": 14,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_auth_signing_alg",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "initiate_login_uri",
|
|
"ordinal": 16,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
true,
|
|
null,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"UuidArray"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n c.oauth2_client_id,\n c.encrypted_client_secret,\n ARRAY(\n SELECT redirect_uri\n FROM oauth2_client_redirect_uris r\n WHERE r.oauth2_client_id = c.oauth2_client_id\n ) AS \"redirect_uris!\",\n c.grant_type_authorization_code,\n c.grant_type_refresh_token,\n c.client_name,\n c.logo_uri,\n c.client_uri,\n c.policy_uri,\n c.tos_uri,\n c.jwks_uri,\n c.jwks,\n c.id_token_signed_response_alg,\n c.userinfo_signed_response_alg,\n c.token_endpoint_auth_method,\n c.token_endpoint_auth_signing_alg,\n c.initiate_login_uri\n FROM oauth2_clients c\n\n WHERE c.oauth2_client_id = ANY($1::uuid[])\n "
|
|
},
|
|
"7cf5ae665b15ba78b01bb1dfa304150a89fd7203f4ee15b0753cb2143049a3dc": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_refresh_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_refresh_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_refresh_token_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_id?",
|
|
"ordinal": 3,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token?",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_created_at?",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_expires_at?",
|
|
"ordinal": 6,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id!",
|
|
"ordinal": 7,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id!",
|
|
"ordinal": 8,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_session_scope!",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_session_id!",
|
|
"ordinal": 10,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_created_at!",
|
|
"ordinal": 11,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_id!",
|
|
"ordinal": 12,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username!",
|
|
"ordinal": 13,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_id?",
|
|
"ordinal": 14,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_last_authentication_created_at?",
|
|
"ordinal": 15,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 16,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 17,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 18,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 19,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n rt.oauth2_refresh_token_id,\n rt.refresh_token AS oauth2_refresh_token,\n rt.created_at AS oauth2_refresh_token_created_at,\n at.oauth2_access_token_id AS \"oauth2_access_token_id?\",\n at.access_token AS \"oauth2_access_token?\",\n at.created_at AS \"oauth2_access_token_created_at?\",\n at.expires_at AS \"oauth2_access_token_expires_at?\",\n os.oauth2_session_id AS \"oauth2_session_id!\",\n os.oauth2_client_id AS \"oauth2_client_id!\",\n os.scope AS \"oauth2_session_scope!\",\n us.user_session_id AS \"user_session_id!\",\n us.created_at AS \"user_session_created_at!\",\n u.user_id AS \"user_id!\",\n u.username AS \"user_username!\",\n usa.user_session_authentication_id AS \"user_session_last_authentication_id?\",\n usa.created_at AS \"user_session_last_authentication_created_at?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM oauth2_refresh_tokens rt\n INNER JOIN oauth2_sessions os\n USING (oauth2_session_id)\n LEFT JOIN oauth2_access_tokens at\n USING (oauth2_access_token_id)\n INNER JOIN user_sessions us\n USING (user_session_id)\n INNER JOIN users u\n USING (user_id)\n LEFT JOIN user_session_authentications usa\n USING (user_session_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n\n WHERE rt.refresh_token = $1\n AND rt.consumed_at IS NULL\n AND rt.revoked_at IS NULL\n AND us.finished_at IS NULL\n AND os.finished_at IS NULL\n\n ORDER BY usa.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"7d600dd15e9dac72c8071c854799fc2ac69777ade5e2d7d2d944b0dedf8ecdf8": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_confirmation_code_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "code",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n ec.user_email_confirmation_code_id,\n ec.code,\n ec.created_at,\n ec.expires_at,\n ec.consumed_at\n FROM user_email_confirmation_codes ec\n WHERE ec.code = $1\n AND ec.user_email_id = $2\n "
|
|
},
|
|
"7e3247e35ecf5335f0656c53bcde27264a9efb8dccb6246344950614f487dcaf": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE compat_access_tokens\n SET expires_at = $2\n WHERE compat_access_token_id = $1\n "
|
|
},
|
|
"819d6472e5bcbd83a83f3a7680e8dc88e77f3970d6beddcf54e8416c880bd496": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE users\n SET primary_user_email_id = user_emails.user_email_id\n FROM user_emails\n WHERE user_emails.user_email_id = $1\n AND users.user_id = user_emails.user_id\n "
|
|
},
|
|
"874e677f82c221c5bb621c12f293bcef4e70c68c87ec003fcd475bcb994b5a4c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_refresh_tokens\n SET consumed_at = $2\n WHERE oauth2_refresh_token_id = $1\n "
|
|
},
|
|
"89e0d338348588831a7a810763a1901073f7a7cb81d51c18bb987a5be10c1202": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "count",
|
|
"ordinal": 0,
|
|
"type_info": "Int8"
|
|
}
|
|
],
|
|
"nullable": [
|
|
null
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT COUNT(*)\n FROM user_emails ue\n WHERE ue.user_id = $1\n "
|
|
},
|
|
"99f5f9eb0adc5ec120ed8194cbf6a8545155bef09e6d94d92fb67fd1b14d4f28": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE compat_refresh_tokens\n SET consumed_at = $2\n WHERE compat_refresh_token_id = $1\n "
|
|
},
|
|
"9c1ef3114bfe22884d893bb11dc6054421c28cce4bd828cfe6a4ad46c062481a": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_sessions\n SET finished_at = $2\n WHERE oauth2_session_id = $1\n "
|
|
},
|
|
"9e14584cd114b1cf82e52d835facf6c8e6f19f6026f53de17c3834e9ae15affe": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO compat_sessions\n (compat_session_id, user_id, device_id, created_at)\n VALUES ($1, $2, $3, $4)\n "
|
|
},
|
|
"9edf5e8a3e00a7cdd8e55b97105df7831ee580096299df4bd6c1ed7c96b95e83": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "count!",
|
|
"ordinal": 0,
|
|
"type_info": "Int8"
|
|
}
|
|
],
|
|
"nullable": [
|
|
null
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT COUNT(*) as \"count!\"\n FROM user_sessions s\n WHERE s.user_id = $1 AND s.finished_at IS NULL\n "
|
|
},
|
|
"a0ef64e3de97dc2d24efe235c289557018448957a4776197445eafec8b5fb7a9": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_access_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_access_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_access_token_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_access_token_expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_session_created_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_finished_at",
|
|
"ordinal": 6,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_device_id",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_id!",
|
|
"ordinal": 8,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username!",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 10,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 11,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 12,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 13,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n ct.compat_access_token_id,\n ct.access_token AS \"compat_access_token\",\n ct.created_at AS \"compat_access_token_created_at\",\n ct.expires_at AS \"compat_access_token_expires_at\",\n cs.compat_session_id,\n cs.created_at AS \"compat_session_created_at\",\n cs.finished_at AS \"compat_session_finished_at\",\n cs.device_id AS \"compat_session_device_id\",\n u.user_id AS \"user_id!\",\n u.username AS \"user_username!\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n\n FROM compat_access_tokens ct\n INNER JOIN compat_sessions cs\n USING (compat_session_id)\n INNER JOIN users u\n USING (user_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n\n WHERE ct.access_token = $1\n AND ct.expires_at < $2\n AND cs.finished_at IS NULL \n "
|
|
},
|
|
"a5a7dad633396e087239d5629092e4a305908ffce9c2610db07372f719070546": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_authorization_grants AS og\n SET\n requires_consent = 'f'\n WHERE\n og.oauth2_authorization_grant_id = $1\n "
|
|
},
|
|
"a8117b4dd167167b477fb4ebda52789e376defbdc67f3d9093aa06308b2f856e": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_sso_login_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_redirect_uri",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_fulfilled_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_sso_login_exchanged_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id?",
|
|
"ordinal": 6,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_session_created_at?",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_finished_at?",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_device_id?",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_id?",
|
|
"ordinal": 10,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username?",
|
|
"ordinal": 11,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 12,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 13,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 14,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 15,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n cl.compat_sso_login_id,\n cl.login_token AS \"compat_sso_login_token\",\n cl.redirect_uri AS \"compat_sso_login_redirect_uri\",\n cl.created_at AS \"compat_sso_login_created_at\",\n cl.fulfilled_at AS \"compat_sso_login_fulfilled_at\",\n cl.exchanged_at AS \"compat_sso_login_exchanged_at\",\n cs.compat_session_id AS \"compat_session_id?\",\n cs.created_at AS \"compat_session_created_at?\",\n cs.finished_at AS \"compat_session_finished_at?\",\n cs.device_id AS \"compat_session_device_id?\",\n u.user_id AS \"user_id?\",\n u.username AS \"user_username?\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n FROM compat_sso_logins cl\n LEFT JOIN compat_sessions cs\n USING (compat_session_id)\n LEFT JOIN users u\n USING (user_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n WHERE cl.login_token = $1\n "
|
|
},
|
|
"af77bad7259175464c5ad57f9662571c17b29552ebb70e4b6022584b41bdff0d": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "exists!",
|
|
"ordinal": 0,
|
|
"type_info": "Bool"
|
|
}
|
|
],
|
|
"nullable": [
|
|
null
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT EXISTS(\n SELECT 1 FROM users WHERE username = $1\n ) AS \"exists!\"\n "
|
|
},
|
|
"b5b955169ebe6c399e53b74627c11c8219c0736ef2b5b6b44be568a35fd5389f": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n ue.user_email_id,\n ue.email AS \"user_email\",\n ue.created_at AS \"user_email_created_at\",\n ue.confirmed_at AS \"user_email_confirmed_at\"\n FROM user_emails ue\n\n WHERE ue.user_id = $1\n AND ue.user_email_id = $2\n "
|
|
},
|
|
"bc768c63a7737818967bc28560de714bbbd262bdf3ab73d297263bb73dcd9f5e": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Timestamptz",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_sessions\n (oauth2_session_id, user_session_id, oauth2_client_id, scope, created_at)\n SELECT\n $1,\n $2,\n og.oauth2_client_id,\n og.scope,\n $3\n FROM\n oauth2_authorization_grants og\n WHERE\n og.oauth2_authorization_grant_id = $4\n "
|
|
},
|
|
"c52c911bf39ada298bfdc4526028f1b29fdcb6f557b288bb7ea2472b160c8698": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_refresh_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_refresh_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_refresh_token_created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_access_token_id",
|
|
"ordinal": 3,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_access_token",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "compat_access_token_created_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_access_token_expires_at",
|
|
"ordinal": 6,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 7,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_session_created_at",
|
|
"ordinal": 8,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_finished_at",
|
|
"ordinal": 9,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_device_id",
|
|
"ordinal": 10,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 11,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username!",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_id?",
|
|
"ordinal": 13,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email?",
|
|
"ordinal": 14,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_email_created_at?",
|
|
"ordinal": 15,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_email_confirmed_at?",
|
|
"ordinal": 16,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n cr.compat_refresh_token_id,\n cr.refresh_token AS \"compat_refresh_token\",\n cr.created_at AS \"compat_refresh_token_created_at\",\n ct.compat_access_token_id,\n ct.access_token AS \"compat_access_token\",\n ct.created_at AS \"compat_access_token_created_at\",\n ct.expires_at AS \"compat_access_token_expires_at\",\n cs.compat_session_id,\n cs.created_at AS \"compat_session_created_at\",\n cs.finished_at AS \"compat_session_finished_at\",\n cs.device_id AS \"compat_session_device_id\",\n u.user_id,\n u.username AS \"user_username!\",\n ue.user_email_id AS \"user_email_id?\",\n ue.email AS \"user_email?\",\n ue.created_at AS \"user_email_created_at?\",\n ue.confirmed_at AS \"user_email_confirmed_at?\"\n\n FROM compat_refresh_tokens cr\n INNER JOIN compat_sessions cs\n USING (compat_session_id)\n INNER JOIN compat_access_tokens ct\n USING (compat_access_token_id)\n INNER JOIN users u\n USING (user_id)\n LEFT JOIN user_emails ue\n ON ue.user_email_id = u.primary_user_email_id\n\n WHERE cr.refresh_token = $1\n AND cr.consumed_at IS NULL\n AND cs.finished_at IS NULL\n "
|
|
},
|
|
"c88376abdba124ff0487a9a69d2345c7d69d7394f355111ec369cfa6d45fb40f": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Int4",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Bool",
|
|
"Bool",
|
|
"Text",
|
|
"Bool",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_authorization_grants (\n oauth2_authorization_grant_id,\n oauth2_client_id,\n redirect_uri,\n scope,\n state,\n nonce,\n max_age,\n response_mode,\n code_challenge,\n code_challenge_method,\n response_type_code,\n response_type_id_token,\n authorization_code,\n requires_consent,\n created_at\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)\n "
|
|
},
|
|
"caf54e4659306a746747aa61906bdb2cb8da51176e90435aa8b9754ebf3e4d60": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO compat_sessions (compat_session_id, user_id, device_id, created_at)\n VALUES ($1, $2, $3, $4)\n "
|
|
},
|
|
"cb8ba981330e58a6c8580f6e394a721df110e1f2206e080434aa821c44c0164b": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "TRUNCATE oauth2_client_redirect_uris, oauth2_clients CASCADE"
|
|
},
|
|
"cc9e30678d673546efca336ee8e550083eed71459611fa2db52264e51e175901": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Bool",
|
|
"Bool",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Jsonb",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_clients\n (oauth2_client_id,\n encrypted_client_secret,\n grant_type_authorization_code,\n grant_type_refresh_token,\n client_name,\n logo_uri,\n client_uri,\n policy_uri,\n tos_uri,\n jwks_uri,\n jwks,\n id_token_signed_response_alg,\n userinfo_signed_response_alg,\n token_endpoint_auth_method,\n token_endpoint_auth_signing_alg,\n initiate_login_uri)\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)\n "
|
|
},
|
|
"cf00e0ad529bcb5c0640adcfe0880a3560d9739f355b90ca3ba88dd1eaf26565": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "upstream_oauth_provider_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "issuer",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "scope",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "client_id",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "encrypted_client_secret",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_signing_alg",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "token_endpoint_auth_method",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": []
|
|
}
|
|
},
|
|
"query": "\n SELECT\n upstream_oauth_provider_id,\n issuer,\n scope,\n client_id,\n encrypted_client_secret,\n token_endpoint_signing_alg,\n token_endpoint_auth_method,\n created_at\n FROM upstream_oauth_providers\n "
|
|
},
|
|
"d1738c27339b81f0844da4bd9b040b9b07a91aa4d9b199b98f24c9cee5709b2b": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO compat_sso_logins\n (compat_sso_login_id, login_token, redirect_uri, created_at)\n VALUES ($1, $2, $3, $4)\n "
|
|
},
|
|
"d55a321e8935f4effda29d9620a0f622125cb38472785049ee21c2616a6bd068": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE user_email_confirmation_codes\n SET consumed_at = $2\n WHERE user_email_confirmation_code_id = $1\n "
|
|
},
|
|
"d8677b3b6ee594c230fad98c1aa1c6e3d983375bf5b701c7b52468e7f906abf9": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_refresh_tokens\n (oauth2_refresh_token_id, oauth2_session_id, oauth2_access_token_id,\n refresh_token, created_at)\n VALUES\n ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"e16ac9f75be25ef6873f1851e916df3ea730422409decc0344f7f05ce3c3841f": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM user_emails\n WHERE user_emails.user_email_id = $1\n "
|
|
},
|
|
"e1dc9dd2bf26a341050a53151bf51f7638448ccc2bd458bbdfe87cc22f086313": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO upstream_oauth_links (\n upstream_oauth_link_id,\n upstream_oauth_provider_id,\n user_id,\n subject,\n created_at\n ) VALUES ($1, $2, NULL, $3, $4)\n "
|
|
},
|
|
"e30562e9637d3a723a91adca6336a8d083657ce6d7fe9551fcd6a9d672453d3c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Timestamptz",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE upstream_oauth_authorization_sessions\n SET consumed_at = $1\n WHERE upstream_oauth_authorization_session_id = $2\n "
|
|
},
|
|
"e446e37d48c8838ef2e0d0fd82f8f7b04893c84ad46747cdf193ebd83755ceb2": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_sessions (user_session_id, user_id, created_at)\n VALUES ($1, $2, $3)\n "
|
|
},
|
|
"f71cb5761bfc15d8bc3ba7ee49b63fb3c3ea9691745688eb5fd91f4f6e1ec018": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "upstream_oauth_link_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "upstream_oauth_provider_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "subject",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT\n upstream_oauth_link_id,\n upstream_oauth_provider_id,\n user_id,\n subject,\n created_at\n FROM upstream_oauth_links\n WHERE upstream_oauth_provider_id = $1\n AND subject = $2\n "
|
|
},
|
|
"fb71ac6539039313fd90b29ac943330e54c7b62b2778727726e2f60a554f9c5a": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO upstream_oauth_authorization_sessions (\n upstream_oauth_authorization_session_id,\n upstream_oauth_provider_id,\n state,\n code_challenge_verifier,\n nonce,\n created_at,\n completed_at,\n consumed_at,\n id_token\n ) VALUES ($1, $2, $3, $4, $5, $6, NULL, NULL, NULL)\n "
|
|
}
|
|
} |