2086 lines
71 KiB
JSON
2086 lines
71 KiB
JSON
{
|
|
"db": "PostgreSQL",
|
|
"028302788438b399be2eca6fb40c85b270c364a6ae58d256d52e6eafb4b8e6c3": {
|
|
"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 "
|
|
},
|
|
"039a1c4c5234f381449de3d401dd5ebc79fb3794f614aa5012b8e28e6d26a847": {
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"1a10e6189300563e79684eb7ccc6c29b0418aadfdeea6f8bc5a700a411409c73": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"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 "
|
|
},
|
|
"1e6d4799268af538a8dd05ce95ab34d2e359ecba544d7c3022ba95c5dda44a7e": {
|
|
"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 "
|
|
},
|
|
"224f5b9acd93dbeae223ee94286fce25e6fe0f94926bea983916bc5facbc67b6": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"Uuid",
|
|
"Text",
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO user_email_confirmation_codes \n (user_email_confirmation_code_id, user_email_id, code, created_at)\n VALUES ($1, $2, $3, $4)\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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"2e885c30ae28a14f136b6529614bdbde9d6c3d48f3a24edf2373c28718f55f07": {
|
|
"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": "consumed_at",
|
|
"ordinal": 3,
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"nullable": [
|
|
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.consumed_at\n FROM user_email_confirmation_codes ec\n WHERE ec.code = $1\n AND ec.user_email_id = $2\n "
|
|
},
|
|
"31d583a4e76e39f14f2ba300dc360ca44aea5f8d69d8675368513fbd0fc2d93c": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"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 $1, $2, $3, scope_token, $5 FROM UNNEST($4::text[]) scope_token\n ON CONFLICT (user_id, oauth2_client_id, scope_token) DO UPDATE SET refreshed_at = $5\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 "
|
|
},
|
|
"3d94de9d292a91c091595215f898ef21c6ede2bb1bd1d59f6aed76429098909a": {
|
|
"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"
|
|
]
|
|
}
|
|
},
|
|
"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 IS NULL OR ct.expires_at > NOW())\n AND cs.finished_at IS NULL\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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"613aaff56efa9081dcaabb72219ed6c067d4e38db92e472f40ddd21dc2bddf82": {
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"7d9fe18c9fd346d51dac4552a1fee5e6a5da8512c5640f5b68aa0af8301a9611": {
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"8bafcb5ab5a7cabccededbe60b1cc438fe3d7ba4c86e2d7ea26aea80d92a4af8": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Timestamptz"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n DELETE FROM oauth2_access_tokens\n WHERE expires_at < $1 \n "
|
|
},
|
|
"97a90983e07a1e18eeacd379484c9b5317e0d90c23bc5d12ba98269497a47e00": {
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"9dbaaf32ecf2ba8ff65d47dbe871c21ec80675431a890dfa21c64ccb0a664326": {
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"a80c14ba82cfc29493048d9e9578ec5ca482c9228efc7c7212dae4fed86b8367": {
|
|
"describe": {
|
|
"columns": [],
|
|
"nullable": [],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid",
|
|
"TextArray"
|
|
]
|
|
}
|
|
},
|
|
"query": "\n INSERT INTO oauth2_client_redirect_uris (oauth2_client_id, redirect_uri)\n SELECT $1, uri FROM UNNEST($2::text[]) uri\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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"d2a5766f319bb006c0814d365938644b8d713955bc7e2fa2c14fa1066083be77": {
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"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 "
|
|
},
|
|
"ea74353fdeca30a2aca252e54c07442c21ee96c3d1bda1049aa26085ec2d0ba2": {
|
|
"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 "
|
|
},
|
|
"f6c4742f613dafe79315c1e8e31b0662e5b1e9f8151e8c3751189f0222819094": {
|
|
"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 "
|
|
}
|
|
} |