61 lines
1.3 KiB
JSON
61 lines
1.3 KiB
JSON
|
|
{
|
||
|
|
"db_name": "PostgreSQL",
|
||
|
|
"query": "\n SELECT id, title, body, type AS notification_type,\n reference_id, is_read, created_at\n FROM notifications\n WHERE user_id = $1\n ORDER BY created_at DESC\n LIMIT $2 OFFSET $3\n ",
|
||
|
|
"describe": {
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"ordinal": 0,
|
||
|
|
"name": "id",
|
||
|
|
"type_info": "Uuid"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 1,
|
||
|
|
"name": "title",
|
||
|
|
"type_info": "Varchar"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 2,
|
||
|
|
"name": "body",
|
||
|
|
"type_info": "Text"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 3,
|
||
|
|
"name": "notification_type",
|
||
|
|
"type_info": "Varchar"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 4,
|
||
|
|
"name": "reference_id",
|
||
|
|
"type_info": "Uuid"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 5,
|
||
|
|
"name": "is_read",
|
||
|
|
"type_info": "Bool"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"ordinal": 6,
|
||
|
|
"name": "created_at",
|
||
|
|
"type_info": "Timestamptz"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"parameters": {
|
||
|
|
"Left": [
|
||
|
|
"Uuid",
|
||
|
|
"Int8",
|
||
|
|
"Int8"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"nullable": [
|
||
|
|
false,
|
||
|
|
false,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
true,
|
||
|
|
false,
|
||
|
|
false
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"hash": "4a2e937f113dfafcb03957bcd5da098aa7b7bc825af7a97a32c48d4a29000a99"
|
||
|
|
}
|