2024-07-22 23:31:11 +02:00
|
|
|
{
|
|
|
|
"db_name": "PostgreSQL",
|
2024-07-25 17:49:19 +02:00
|
|
|
"query": "SELECT\n event AS \"event: ItemEvent\",\n next AS \"next: ItemState\"\n FROM item_events_transitions\n WHERE state = $1",
|
2024-07-22 23:31:11 +02:00
|
|
|
"describe": {
|
|
|
|
"columns": [
|
|
|
|
{
|
|
|
|
"ordinal": 0,
|
|
|
|
"name": "event: ItemEvent",
|
|
|
|
"type_info": {
|
|
|
|
"Custom": {
|
|
|
|
"name": "item_event",
|
|
|
|
"kind": {
|
|
|
|
"Enum": [
|
|
|
|
"acquire",
|
|
|
|
"borrow",
|
|
|
|
"buy",
|
|
|
|
"dispose",
|
|
|
|
"gift",
|
|
|
|
"loan",
|
|
|
|
"lose",
|
|
|
|
"recieve_gift",
|
|
|
|
"return_borrowed",
|
|
|
|
"return_loaned",
|
|
|
|
"sell",
|
|
|
|
"use"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ordinal": 1,
|
|
|
|
"name": "next: ItemState",
|
|
|
|
"type_info": {
|
|
|
|
"Custom": {
|
|
|
|
"name": "item_state",
|
|
|
|
"kind": {
|
|
|
|
"Enum": [
|
|
|
|
"borrowed",
|
|
|
|
"inactive",
|
|
|
|
"loaned",
|
|
|
|
"owned"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": {
|
|
|
|
"Left": [
|
|
|
|
{
|
|
|
|
"Custom": {
|
|
|
|
"name": "item_state",
|
|
|
|
"kind": {
|
|
|
|
"Enum": [
|
|
|
|
"borrowed",
|
|
|
|
"inactive",
|
|
|
|
"loaned",
|
|
|
|
"owned"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"nullable": [
|
|
|
|
false,
|
|
|
|
false
|
|
|
|
]
|
|
|
|
},
|
2024-07-25 17:49:19 +02:00
|
|
|
"hash": "fecd395ba131e0b0767b8b4799eded503e6bf446c2562cbddae918c971403240"
|
2024-07-22 23:31:11 +02:00
|
|
|
}
|