mmap/.sqlx/query-9dff45451b7fe2804768c72642ba52aed5618d687519727c6a39fd7bb77c9237.json
Tsuki 3e90e2fa9f
Some checks failed
Docker Build and Push / build (push) Has been cancelled
sync
2025-08-08 07:20:28 +08:00

45 lines
1.2 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT \n COUNT(*) as total_users,\n COUNT(CASE WHEN is_activate = true THEN 1 END) as total_active_users,\n COUNT(CASE WHEN is_activate = false THEN 1 END) as total_inactive_users,\n COUNT(CASE WHEN role = 'Admin' THEN 1 END) as total_admin_users,\n COUNT(CASE WHEN role = 'User' THEN 1 END) as total_user_users\n FROM users\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "total_users",
"type_info": "Int8"
},
{
"ordinal": 1,
"name": "total_active_users",
"type_info": "Int8"
},
{
"ordinal": 2,
"name": "total_inactive_users",
"type_info": "Int8"
},
{
"ordinal": 3,
"name": "total_admin_users",
"type_info": "Int8"
},
{
"ordinal": 4,
"name": "total_user_users",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null,
null,
null,
null,
null
]
},
"hash": "9dff45451b7fe2804768c72642ba52aed5618d687519727c6a39fd7bb77c9237"
}