Bir masam var (siparişler) jsonb[]
adlandırılmış sütun steps
postgres db'de.
Step1 ve Step2 ve Step3'ün başarı durumuna sahip olduğu kayıtları seçmek için SQL sorgusu oluşturmam gerekiyor
[
{
"step_name"=>"Step1",
"status"=>"success",
"timestamp"=>1636120240
},
{
"step_name"=>"Step2",
"status"=>"success",
"timestamp"=>1636120275
},
{
"step_name"=>"Step3",
"status"=>"success",
"timestamp"=>1636120279
},
{
"step_name"=>"Step4",
"timestamp"=>1636120236
"status"=>"success"
}
]
tablo yapısı kimlik / ad / adımlar (jsonb)