mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-15 12:26:57 +00:00
2744 lines
82 KiB
JSON
2744 lines
82 KiB
JSON
{
|
|
"db": "PostgreSQL",
|
|
"015f7ad7c8d5403ce4dfb71d598fd9af472689d5aef7c1c4b1c594ca57c02237": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_authorization_grants\n SET fulfilled_at = $2\n , oauth2_session_id = $3\n WHERE oauth2_authorization_grant_id = $1\n "
|
|
},
|
|
"036e9e2cb7271782e48700fecd3fdd80f596ed433f37f2528c7edbdc88b13646": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_consents\n WHERE oauth2_client_id = $1\n "
|
|
},
|
|
"0469c1d3ad11fd96febacad33302709c870ead848d6920cdfdb18912d543488e": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "device_id",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "finished_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "is_synapse_admin",
|
|
"ordinal": 5,
|
|
"type_info": "Bool"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_session_id\n , device_id\n , user_id\n , created_at\n , finished_at\n , is_synapse_admin\n FROM compat_sessions\n WHERE compat_session_id = $1\n "
|
|
},
|
|
"08d7df347c806ef14b6d0fb031cab041d79ba48528420160e23286369db7af35": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "primary_user_email_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT user_id\n , username\n , primary_user_email_id\n , created_at\n FROM users\n WHERE user_id = $1\n "
|
|
},
|
|
"1a8701f5672de052bb766933f60b93249acc7237b996e8b93cd61b9f69c902ff": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_access_tokens\n WHERE expires_at < $1\n "
|
|
},
|
|
"1d372f36c382ab16264cea54537af3544ea6d6d75d10b432b07dbd0dadd2fa4e": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_confirmation_code_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "code",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT user_email_confirmation_code_id\n , user_email_id\n , code\n , created_at\n , expires_at\n , consumed_at\n FROM user_email_confirmation_codes\n WHERE code = $1\n AND user_email_id = $2\n "
|
|
},
|
|
"1eb829460407fca22b717b88a1a0a9b7b920d807a4b6c235e1bee524cd73b266": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM upstream_oauth_links\n WHERE upstream_oauth_provider_id = $1\n "
|
|
},
|
|
"1f6297fb323e9f2fbfa1c9e3225c0b3037c8c4714533a6240c62275332aa58dc": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM user_email_confirmation_codes\n WHERE user_email_id = $1\n "
|
|
},
|
|
"2564bf6366eb59268c41fb25bb40d0e4e9e1fd1f9ea53b7a359c9025d7304223": {
|
|
"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 "
|
|
},
|
|
"2a0d8d70d21afa9a2c9c1c432853361bb85911c48f7db6c3873b0f5abf35940b": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_authorization_grants\n WHERE oauth2_client_id = $1\n "
|
|
},
|
|
"2ee26886c56f04cd53d4c0968f5cf0963f92b6d15e6af0e69378a6447dee677c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_access_tokens\n WHERE oauth2_session_id IN (\n SELECT oauth2_session_id\n FROM oauth2_sessions\n WHERE oauth2_client_id = $1\n )\n "
|
|
},
|
|
"31cbbd841029812c6d3500cae04a8e9e5723e4749d339465492b68e072c3a802": {
|
|
"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 , is_static\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, FALSE)\n "
|
|
},
|
|
"3d66f3121b11ce923b9c60609b510a8ca899640e78cc8f5b03168622928ffe94": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM user_emails\n WHERE user_email_id = $1\n "
|
|
},
|
|
"4187907bfc770b2c76f741671d5e672f5c35eed7c9a9e57ff52888b1768a5ed6": {
|
|
"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 "
|
|
},
|
|
"4192c1144c0ea530cf1aa77993a38e94cd5cf8b5c42cb037efb7917c6fc44a1d": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "email",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "confirmed_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT user_email_id\n , user_id\n , email\n , created_at\n , confirmed_at\n FROM user_emails\n\n WHERE user_email_id = $1\n "
|
|
},
|
|
"41c1aafbd338c24476f27d342cf80eef7de2836e85b078232d143d6712fc2be4": {
|
|
"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 "
|
|
},
|
|
"432e199b0d47fe299d840c91159726c0a4f89f65b4dc3e33ddad58aabf6b148b": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_refresh_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "refresh_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_access_token_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_refresh_token_id\n , refresh_token\n , created_at\n , consumed_at\n , compat_session_id\n , compat_access_token_id\n\n FROM compat_refresh_tokens\n\n WHERE refresh_token = $1\n "
|
|
},
|
|
"446a8d7bd8532a751810401adfab924dc20785c91770ed43d62df2e590e8da71": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_password_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "hashed_password",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "version",
|
|
"ordinal": 2,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "upgraded_from_id",
|
|
"ordinal": 3,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT up.user_password_id\n , up.hashed_password\n , up.version\n , up.upgraded_from_id\n , up.created_at\n FROM user_passwords up\n WHERE up.user_id = $1\n ORDER BY up.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"477f79556e5777b38feb85013b4f04dbb8230e4b0b0bcc45f669d7b8d0b91db4": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_access_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "access_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "revoked_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_access_token_id\n , access_token\n , created_at\n , expires_at\n , revoked_at\n , oauth2_session_id\n\n FROM oauth2_access_tokens\n\n WHERE access_token = $1\n "
|
|
},
|
|
"478f0ad710da8bfd803c6cddd982bc504d1b6bd0f5283de53c8c7b1b4b7dafd4": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_sso_login_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "login_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "redirect_uri",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "fulfilled_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "exchanged_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 6,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_sso_login_id\n , login_token\n , redirect_uri\n , created_at\n , fulfilled_at\n , exchanged_at\n , compat_session_id\n\n FROM compat_sso_logins\n WHERE login_token = $1\n "
|
|
},
|
|
"496813daf6f8486353e7f509a64362626daebb0121c3c9420b96e2d8157f1e07": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_authorization_grant_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 1,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "cancelled_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "fulfilled_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "exchanged_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "scope",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "state",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "redirect_uri",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "response_mode",
|
|
"ordinal": 8,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "nonce",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "max_age",
|
|
"ordinal": 10,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 11,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "authorization_code",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "response_type_code",
|
|
"ordinal": 13,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "response_type_id_token",
|
|
"ordinal": 14,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "code_challenge",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "code_challenge_method",
|
|
"ordinal": 16,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "requires_consent",
|
|
"ordinal": 17,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 18,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_authorization_grant_id\n , created_at\n , cancelled_at\n , fulfilled_at\n , exchanged_at\n , scope\n , state\n , redirect_uri\n , response_mode\n , nonce\n , max_age\n , oauth2_client_id\n , authorization_code\n , response_type_code\n , response_type_id_token\n , code_challenge\n , code_challenge_method\n , requires_consent\n , oauth2_session_id\n FROM\n oauth2_authorization_grants\n\n WHERE oauth2_authorization_grant_id = $1\n "
|
|
},
|
|
"4d79ce892e4595edb8b801e94fb0cbef28facdfd2e45d1c72c57f47418fbe24b": {
|
|
"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 "
|
|
},
|
|
"53ad718642644b47a2d49f768d81bd993088526923769a9147281686c2d47591": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_access_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "access_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_access_token_id\n , access_token\n , created_at\n , expires_at\n , compat_session_id\n\n FROM compat_access_tokens\n\n WHERE access_token = $1\n "
|
|
},
|
|
"583ae9a0db9cd55fa57a179339550f3dab1bfc76f35ad488e1560ea37f7ed029": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_sessions\n ( oauth2_session_id\n , user_session_id\n , oauth2_client_id\n , scope\n , created_at\n )\n VALUES ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"5b697dd7834d33ec55972d3ba43d25fe794bc0b69c5938275711faa7a80b811f": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_refresh_tokens\n WHERE oauth2_session_id IN (\n SELECT oauth2_session_id\n FROM oauth2_sessions\n WHERE oauth2_client_id = $1\n )\n "
|
|
},
|
|
"5f6b7e38ef9bc3b39deabba277d0255fb8cfb2adaa65f47b78a8fac11d8c91c3": {
|
|
"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 "
|
|
},
|
|
"5fe1bb569d13a7d3ff22887b3fc5b76ff901c183b314f8ccb5018d70c516abf6": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_clients\n WHERE oauth2_client_id = $1\n "
|
|
},
|
|
"6021c1b9e17b0b2e8b511888f8c6be00683ba0635a13eb7fcd403d3d4a3f90db": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Timestamptz",
|
|
"Jsonb"
|
|
]
|
|
}
|
|
},
|
|
"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 claims_imports\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)\n "
|
|
},
|
|
"64e6ea47c2e877c1ebe4338d64d9ad8a6c1c777d1daea024b8ca2e7f0dd75b0f": {
|
|
"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 "
|
|
},
|
|
"6733c54a8d9ed93a760f365a9362fdb0f77340d7a4df642a2942174aba2c6502": {
|
|
"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"
|
|
},
|
|
{
|
|
"name": "claims_imports: Json<UpstreamOAuthProviderClaimsImports>",
|
|
"ordinal": 8,
|
|
"type_info": "Jsonb"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
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 claims_imports as \"claims_imports: Json<UpstreamOAuthProviderClaimsImports>\"\n FROM upstream_oauth_providers\n WHERE upstream_oauth_provider_id = $1\n "
|
|
},
|
|
"67ab838035946ddc15b43dd2f79d10b233d07e863b3a5c776c5db97cff263c8c": {
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"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 "
|
|
},
|
|
"689ffbfc5137ec788e89062ad679bbe6b23a8861c09a7246dc1659c28f12bf8d": {
|
|
"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 "
|
|
},
|
|
"68c4cd463e4035ba8384f11818b7be602e2fbc34a5582f31f95b0cc5fa2aeb92": {
|
|
"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 , is_static\n )\n VALUES\n ($1, $2, $3, $4, $5, $6, $7, TRUE)\n ON CONFLICT (oauth2_client_id)\n DO\n UPDATE SET encrypted_client_secret = EXCLUDED.encrypted_client_secret\n , grant_type_authorization_code = EXCLUDED.grant_type_authorization_code\n , grant_type_refresh_token = EXCLUDED.grant_type_refresh_token\n , token_endpoint_auth_method = EXCLUDED.token_endpoint_auth_method\n , jwks = EXCLUDED.jwks\n , jwks_uri = EXCLUDED.jwks_uri\n , is_static = TRUE\n "
|
|
},
|
|
"6a3b543ec53ce242866d1e84de26728e6dd275cae745f9c646e3824d859c5384": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_authorization_grant_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 1,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "cancelled_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "fulfilled_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "exchanged_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "scope",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "state",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "redirect_uri",
|
|
"ordinal": 7,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "response_mode",
|
|
"ordinal": 8,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "nonce",
|
|
"ordinal": 9,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "max_age",
|
|
"ordinal": 10,
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 11,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "authorization_code",
|
|
"ordinal": 12,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "response_type_code",
|
|
"ordinal": 13,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "response_type_id_token",
|
|
"ordinal": 14,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "code_challenge",
|
|
"ordinal": 15,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "code_challenge_method",
|
|
"ordinal": 16,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "requires_consent",
|
|
"ordinal": 17,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 18,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_authorization_grant_id\n , created_at\n , cancelled_at\n , fulfilled_at\n , exchanged_at\n , scope\n , state\n , redirect_uri\n , response_mode\n , nonce\n , max_age\n , oauth2_client_id\n , authorization_code\n , response_type_code\n , response_type_id_token\n , code_challenge\n , code_challenge_method\n , requires_consent\n , oauth2_session_id\n FROM\n oauth2_authorization_grants\n\n WHERE authorization_code = $1\n "
|
|
},
|
|
"6e21e7d816f806da9bb5176931bdb550dee05c44c9d93f53df95fe3b4a840347": {
|
|
"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 "
|
|
},
|
|
"6f97b5f9ad0d4d15387150bea3839fb7f81015f7ceef61ecaadba64521895cff": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Int4",
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_passwords\n (user_password_id, user_id, hashed_password, version, upgraded_from_id, created_at)\n VALUES ($1, $2, $3, $4, $5, $6)\n "
|
|
},
|
|
"751d549073d77ded84aea1aaba36d3b130ec71bc592d722eb75b959b80f0b4ff": {
|
|
"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 "
|
|
},
|
|
"77dfa9fae1a9c77b70476d7da19d3313a02886994cfff0690451229fb5ae2f77": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_access_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "access_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_access_token_id\n , access_token\n , created_at\n , expires_at\n , compat_session_id\n\n FROM compat_access_tokens\n\n WHERE compat_access_token_id = $1\n "
|
|
},
|
|
"79295f3d3a75f831e9469aabfa720d381a254d00dbe39fef1e9652029d51b89b": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_created_at",
|
|
"ordinal": 1,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_session_finished_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 3,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_username",
|
|
"ordinal": 4,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "user_primary_user_email_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "last_authentication_id?",
|
|
"ordinal": 6,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "last_authd_at?",
|
|
"ordinal": 7,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT s.user_session_id\n , s.created_at AS \"user_session_created_at\"\n , s.finished_at AS \"user_session_finished_at\"\n , u.user_id\n , u.username AS \"user_username\"\n , u.primary_user_email_id AS \"user_primary_user_email_id\"\n , a.user_session_authentication_id AS \"last_authentication_id?\"\n , a.created_at AS \"last_authd_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 WHERE s.user_session_id = $1\n ORDER BY a.created_at DESC\n LIMIT 1\n "
|
|
},
|
|
"7be139553610ace03193a99fe27fcb4e3d50c90accdaf22ca1cfeefdc9734300": {
|
|
"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 "
|
|
},
|
|
"7cd0264707100f5b3cb2582f3f840bf66649742374e3643f1902ae69377fc9b6": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_client_redirect_uris\n WHERE oauth2_client_id = $1\n "
|
|
},
|
|
"7ce387b1b0aaf10e72adde667b19521b66eaafa51f73bf2f95e38b8f3b64a229": {
|
|
"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 "
|
|
},
|
|
"7e676491b077d4bc8a9cdb4a27ebf119d98cd35ebb52b1064fdb2d9eed78d0e8": {
|
|
"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": []
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_client_id\n , 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 , 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 FROM oauth2_clients c\n WHERE is_static = TRUE\n "
|
|
},
|
|
"836fb7567d84057fa7f1edaab834c21a158a5762fe220b6bfacd6576be6c613c": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "username",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "primary_user_email_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT user_id\n , username\n , primary_user_email_id\n , created_at\n FROM users\n WHERE username = $1\n "
|
|
},
|
|
"85499663f1adc7b7439592063f06914089f6243126a177b365bde37db5f6b33d": {
|
|
"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 oauth2_client_id\n , 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 , 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 FROM oauth2_clients c\n\n WHERE oauth2_client_id = ANY($1::uuid[])\n "
|
|
},
|
|
"8acbdc892d44efb53529da1c2df65bea6b799a43cf4c9264a37d392847e6eff0": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_sessions\n WHERE oauth2_client_id = $1\n "
|
|
},
|
|
"8b7297c263336d70c2b647212b16f7ae39bc5cb1572e3a2dcfcd67f196a1fa39": {
|
|
"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 "
|
|
},
|
|
"90b5512c0c9dc3b3eb6500056cc72f9993216d9b553c2e33a7edec26ffb0fc59": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE user_emails\n SET confirmed_at = $2\n WHERE user_email_id = $1\n "
|
|
},
|
|
"90fe32cb9c88a262a682c0db700fef7d69d6ce0be1f930d9f16c50b921a8b819": {
|
|
"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 "
|
|
},
|
|
"91a3ee5ad64a947b7807a590f6b014c6856229918b972b98946f98b75686ab6c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM upstream_oauth_providers\n WHERE upstream_oauth_provider_id = $1\n "
|
|
},
|
|
"921d77c194609615a7e9a6fd806e9cc17a7927e3e5deb58f3917ceeb9ab4dede": {
|
|
"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 "
|
|
},
|
|
"9348d87f9e06b614c7e90bdc93bcf38236766aaf4d894bf768debdff2b59fae2": {
|
|
"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 "
|
|
},
|
|
"94fd96446b237c87bd6bf741f3c42b37ee751b87b7fcc459602bdf8c46962443": {
|
|
"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 "
|
|
},
|
|
"9a6c197ff4ad80217262d48f8792ce7e16bc5df0677c7cd4ecb4fdbc5ee86395": {
|
|
"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 "
|
|
},
|
|
"9f7bdc034c618e47e49c467d0d7f5b8c297d055abe248cc876dbc12c5a7dc920": {
|
|
"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 "
|
|
},
|
|
"a2f7433f06fb4f6a7ad5ac6c1db18705276bce41e9b19d5d7e910ad4b767fb5e": {
|
|
"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 "
|
|
},
|
|
"a300fe99c95679c5664646a6a525c0491829e97db45f3234483872ed38436322": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "email",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "confirmed_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT user_email_id\n , user_id\n , email\n , created_at\n , confirmed_at\n FROM user_emails\n\n WHERE user_id = $1\n\n ORDER BY email ASC\n "
|
|
},
|
|
"a6fa7811d0a7c62c7cccff96dc82db5b25462fa7669fde1941ccab4712585b20": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_refresh_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "refresh_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_refresh_token_id\n , refresh_token\n , created_at\n , consumed_at\n , oauth2_access_token_id\n , oauth2_session_id\n FROM oauth2_refresh_tokens\n\n WHERE oauth2_refresh_token_id = $1\n "
|
|
},
|
|
"a7f780528882a2ae66c45435215763eed0582264861436eab3f862e3eb12cab1": {
|
|
"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 "
|
|
},
|
|
"ab34912b42a48a8b5c8d63e271b99b7d0b690a2471873c6654b1b6cf2079b95c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE compat_sessions cs\n SET finished_at = $2\n WHERE compat_session_id = $1\n "
|
|
},
|
|
"af65441068530b68826561d4308e15923ba6c6882ded4860ebde4a7641359abb": {
|
|
"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"
|
|
},
|
|
{
|
|
"name": "claims_imports: Json<UpstreamOAuthProviderClaimsImports>",
|
|
"ordinal": 8,
|
|
"type_info": "Jsonb"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
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 claims_imports as \"claims_imports: Json<UpstreamOAuthProviderClaimsImports>\"\n FROM upstream_oauth_providers\n "
|
|
},
|
|
"afa86e79e3de2a83265cb0db8549d378a2f11b2a27bbd86d60558318c87eb698": {
|
|
"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 "
|
|
},
|
|
"aff08a8caabeb62f4929e6e901e7ca7c55e284c18c5c1d1e78821dd9bc961412": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "user_email_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "email",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "confirmed_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT user_email_id\n , user_id\n , email\n , created_at\n , confirmed_at\n FROM user_emails\n\n WHERE user_id = $1 AND email = $2\n "
|
|
},
|
|
"b26ae7dd28f8a756b55a76e80cdedd7be9ba26435ea4a914421483f8ed832537": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO users (user_id, username, created_at)\n VALUES ($1, $2, $3)\n "
|
|
},
|
|
"b515bbfb331e46acd3c0219f09223cc5d8d31cb41287e693dcb82c6e199f7991": {
|
|
"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 "
|
|
},
|
|
"b6a6f5386dc89e4bc2ce56d578a29341848fce336d339b6bbf425956f5ed5032": {
|
|
"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 "
|
|
},
|
|
"b700dc3f7d0f86f4904725d8357e34b7e457f857ed37c467c314142877fd5367": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE oauth2_sessions\n SET finished_at = $2\n WHERE oauth2_session_id = $1\n "
|
|
},
|
|
"b753790eecbbb4bcd87b9e9a1d1b0dd6c3b50e82ffbfee356e2cf755d72f00be": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "id!",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"nullable": [
|
|
null
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text",
|
|
"Json"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT id as \"id!\"\n FROM apalis.push_job($1::text, $2::json, 'Pending', now(), 25)\n "
|
|
},
|
|
"b9875a270f7e753e48075ccae233df6e24a91775ceb877735508c1d5b2300d64": {
|
|
"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 "
|
|
},
|
|
"b992283a9b43cbb8f86149f3f55cb47fb628dabd8fadc50e6a5772903f851e1c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM upstream_oauth_authorization_sessions\n WHERE upstream_oauth_provider_id = $1\n "
|
|
},
|
|
"bbf62633c561706a762089bbab2f76a9ba3e2ed3539ef16accb601fb609c2ec9": {
|
|
"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 "
|
|
},
|
|
"bd1f6daa5fa1b10250c01f8b3fbe451646a9ceeefa6f72b9c4e29b6d05f17641": {
|
|
"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 "
|
|
},
|
|
"c0ed9d70e496433d8686a499055d8a8376459109b6154a2c0c13b28462afa523": {
|
|
"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 "
|
|
},
|
|
"c1d90a7f2287ec779c81a521fab19e5ede3fa95484033e0312c30d9b6ecc03f0": {
|
|
"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 "
|
|
},
|
|
"c5e7dbb22488aca427b85b3415bd1f1a1766ff865f2e08a5daa095d2a1ccbd56": {
|
|
"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 "
|
|
},
|
|
"cff3ac0fff62ffdc5640fce08c2ffabc1d89202561b736c5d03b501dfcd8d886": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz",
|
|
"Bool"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO compat_sessions (compat_session_id, user_id, device_id, created_at, is_synapse_admin)\n VALUES ($1, $2, $3, $4, $5)\n "
|
|
},
|
|
"d0b403e9c843ef19fa5ad60bec32ebf14a1ba0d01681c3836366d3f55e7851f4": {
|
|
"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 "
|
|
},
|
|
"d12a513b81b3ef658eae1f0a719933323f28c6ee260b52cafe337dd3d19e865c": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "count",
|
|
"ordinal": 0,
|
|
"type_info": "Int8"
|
|
}
|
|
],
|
|
"nullable": [
|
|
null
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT COUNT(*)\n FROM user_emails\n WHERE user_id = $1\n "
|
|
},
|
|
"d83421d4a16f4ad084dd0db5abb56d3688851c36a48a50aa6104e8291e73630d": {
|
|
"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 "
|
|
},
|
|
"db90cbc406a399f5447bd2c1d8018464f83b927dec620353516c0285b76fcf24": {
|
|
"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 oauth2_client_id\n , 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 , 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 FROM oauth2_clients c\n\n WHERE oauth2_client_id = $1\n "
|
|
},
|
|
"dbf4be84eeff9ea51b00185faae2d453ab449017ed492bf6711dc7fceb630880": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Timestamptz",
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n UPDATE user_sessions\n SET finished_at = $1\n WHERE user_session_id = $2\n "
|
|
},
|
|
"dd16942318bf38d9a245b2c86fedd3cbd6b65e7a13465552d79cd3c022122fd4": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_access_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "access_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "expires_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "revoked_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_access_token_id\n , access_token\n , created_at\n , expires_at\n , revoked_at\n , oauth2_session_id\n\n FROM oauth2_access_tokens\n\n WHERE oauth2_access_token_id = $1\n "
|
|
},
|
|
"ddb22dd9ae9367af65a607e1fdc48b3d9581d67deea0c168f24e02090082bb82": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_sso_login_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "login_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "redirect_uri",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "fulfilled_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "exchanged_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 6,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_sso_login_id\n , login_token\n , redirect_uri\n , created_at\n , fulfilled_at\n , exchanged_at\n , compat_session_id\n\n FROM compat_sso_logins\n WHERE compat_sso_login_id = $1\n "
|
|
},
|
|
"e35d56de7136d43d0803ec825b0612e4185cef838f105d66f18cb24865e45140": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "compat_refresh_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "refresh_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "compat_session_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "compat_access_token_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT compat_refresh_token_id\n , refresh_token\n , created_at\n , consumed_at\n , compat_session_id\n , compat_access_token_id\n\n FROM compat_refresh_tokens\n\n WHERE compat_refresh_token_id = $1\n "
|
|
},
|
|
"e6dc63984aced9e19c20e90e9cd75d6f6d7ade64f782697715ac4da077b2e1fc": {
|
|
"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 "
|
|
},
|
|
"e709869c062ac50248b1f9f8f808cc2f5e7bef58a6c2e42a7bb0c1cb8f508671": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_refresh_token_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "refresh_token",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 2,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "consumed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "oauth2_access_token_id",
|
|
"ordinal": 4,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 5,
|
|
"type_info": "Uuid"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Text"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_refresh_token_id\n , refresh_token\n , created_at\n , consumed_at\n , oauth2_access_token_id\n , oauth2_session_id\n FROM oauth2_refresh_tokens\n\n WHERE refresh_token = $1\n "
|
|
},
|
|
"e7ce95415bb6b57cd601393c6abe5febfec2a963ce6eac7b099b761594b1dfaf": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 0,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Text",
|
|
"Timestamptz",
|
|
"Jsonb"
|
|
]
|
|
}
|
|
},
|
|
"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 claims_imports\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9)\n ON CONFLICT (upstream_oauth_provider_id) \n DO UPDATE\n SET\n issuer = EXCLUDED.issuer,\n scope = EXCLUDED.scope,\n token_endpoint_auth_method = EXCLUDED.token_endpoint_auth_method,\n token_endpoint_signing_alg = EXCLUDED.token_endpoint_signing_alg,\n client_id = EXCLUDED.client_id,\n encrypted_client_secret = EXCLUDED.encrypted_client_secret,\n claims_imports = EXCLUDED.claims_imports\n RETURNING created_at\n "
|
|
},
|
|
"f0ace1af3775192a555c4ebb59b81183f359771f9f77e5fad759d38d872541d1": {
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "oauth2_session_id",
|
|
"ordinal": 0,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "user_session_id",
|
|
"ordinal": 1,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "oauth2_client_id",
|
|
"ordinal": 2,
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"name": "scope",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"ordinal": 4,
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"name": "finished_at",
|
|
"ordinal": 5,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n SELECT oauth2_session_id\n , user_session_id\n , oauth2_client_id\n , scope\n , created_at\n , finished_at\n FROM oauth2_sessions\n\n WHERE oauth2_session_id = $1\n "
|
|
}
|
|
} |