You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/.sqlx/query-343f8c888ca3221de7ad8...

257 lines
6.5 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT u.id AS \"id!: UserId\",\n u.username AS \"username!\",\n u.signup_method AS \"signup_method!: SignupMethod\",\n u.role AS \"role!: UserRole\",\n u.avatar_file_reference_id,\n u.status AS \"status!: UserStatus\",\n u.is_banned AS \"is_banned!\",\n u.banned_at,\n u.banned_by AS \"banned_by?: UserId\",\n u.banned_reason,\n u.created_at AS \"created_at!\",\n u.updated_at AS \"updated_at!\",\n u.version AS \"user_version!\",\n u.deleted_at,\n apc.changed_at,\n apc.version AS credential_version,\n apc.opaque_record,\n apc.opaque_credential_identifier,\n apc.opaque_ciphersuite,\n apc.opaque_server_setup_version\n FROM user_account_profiles u\n LEFT JOIN auth_password_credentials apc ON apc.user_id = u.id\n WHERE LOWER(u.username) = LOWER($1) AND u.deleted_at IS NULL\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id!: UserId",
"type_info": "Int8",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "username!",
"type_info": "Varchar",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "username"
}
}
},
{
"ordinal": 2,
"name": "signup_method!: SignupMethod",
"type_info": "Int2",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "signup_method"
}
}
},
{
"ordinal": 3,
"name": "role!: UserRole",
"type_info": "Int2",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "role"
}
}
},
{
"ordinal": 4,
"name": "avatar_file_reference_id",
"type_info": "Int8",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "avatar_file_reference_id"
}
}
},
{
"ordinal": 5,
"name": "status!: UserStatus",
"type_info": "Int2",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "status"
}
}
},
{
"ordinal": 6,
"name": "is_banned!",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "is_banned"
}
}
},
{
"ordinal": 7,
"name": "banned_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "banned_at"
}
}
},
{
"ordinal": 8,
"name": "banned_by?: UserId",
"type_info": "Int8",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "banned_by"
}
}
},
{
"ordinal": 9,
"name": "banned_reason",
"type_info": "Text",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "banned_reason"
}
}
},
{
"ordinal": 10,
"name": "created_at!",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "created_at"
}
}
},
{
"ordinal": 11,
"name": "updated_at!",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "updated_at"
}
}
},
{
"ordinal": 12,
"name": "user_version!",
"type_info": "Int4",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "version"
}
}
},
{
"ordinal": 13,
"name": "deleted_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "user_account_profiles",
"name": "deleted_at"
}
}
},
{
"ordinal": 14,
"name": "changed_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "auth_password_credentials",
"name": "changed_at"
}
}
},
{
"ordinal": 15,
"name": "credential_version",
"type_info": "Int4",
"origin": {
"Table": {
"table": "auth_password_credentials",
"name": "version"
}
}
},
{
"ordinal": 16,
"name": "opaque_record",
"type_info": "Bytea",
"origin": {
"Table": {
"table": "auth_password_credentials",
"name": "opaque_record"
}
}
},
{
"ordinal": 17,
"name": "opaque_credential_identifier",
"type_info": "Bytea",
"origin": {
"Table": {
"table": "auth_password_credentials",
"name": "opaque_credential_identifier"
}
}
},
{
"ordinal": 18,
"name": "opaque_ciphersuite",
"type_info": "Varchar",
"origin": {
"Table": {
"table": "auth_password_credentials",
"name": "opaque_ciphersuite"
}
}
},
{
"ordinal": 19,
"name": "opaque_server_setup_version",
"type_info": "Int4",
"origin": {
"Table": {
"table": "auth_password_credentials",
"name": "opaque_server_setup_version"
}
}
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true,
true
]
},
"hash": "343f8c888ca3221de7ad8d23b3788ce90d7c49a97370335d617e45c5f6b09c16"
}