63 lines
1.2 KiB
JSON
63 lines
1.2 KiB
JSON
|
{
|
||
|
"db_name": "PostgreSQL",
|
||
|
"query": "select\n a.id, a.username, a.email, a.password, a.role as \"role: Role\", a.avatar\n from accounts a\n join tokens t on t.account_id = a.id\n where t.account_id = $1",
|
||
|
"describe": {
|
||
|
"columns": [
|
||
|
{
|
||
|
"ordinal": 0,
|
||
|
"name": "id",
|
||
|
"type_info": "Text"
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 1,
|
||
|
"name": "username",
|
||
|
"type_info": "Text"
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 2,
|
||
|
"name": "email",
|
||
|
"type_info": "Text"
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 3,
|
||
|
"name": "password",
|
||
|
"type_info": "Text"
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 4,
|
||
|
"name": "role: Role",
|
||
|
"type_info": {
|
||
|
"Custom": {
|
||
|
"name": "account_role",
|
||
|
"kind": {
|
||
|
"Enum": [
|
||
|
"user",
|
||
|
"admin"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"ordinal": 5,
|
||
|
"name": "avatar",
|
||
|
"type_info": "Text"
|
||
|
}
|
||
|
],
|
||
|
"parameters": {
|
||
|
"Left": [
|
||
|
"Text"
|
||
|
]
|
||
|
},
|
||
|
"nullable": [
|
||
|
false,
|
||
|
false,
|
||
|
false,
|
||
|
false,
|
||
|
false,
|
||
|
true
|
||
|
]
|
||
|
},
|
||
|
"hash": "3402be9906900efd5c0e9f7ec10e9303a3068b728142dc90bb66389069608e28"
|
||
|
}
|