2021-10-06 19:00:53 +05:30
{
"db" : "PostgreSQL" ,
2023-02-14 17:25:27 +05:30
"0d22134cc5076304b7895827f006ee8269cc500f400114a7472b83f0f1c568b5" : {
2021-10-13 14:10:45 +05:30
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-13 14:10:45 +05:30
"parameters" : {
"Left" : [
2023-02-14 17:25:27 +05:30
"Varchar" ,
2021-10-13 14:10:45 +05:30
"Text" ,
2023-02-14 17:25:27 +05:30
"Varchar"
2021-10-13 14:10:45 +05:30
]
2022-03-26 12:45:36 +05:30
}
} ,
2023-02-14 17:25:27 +05:30
"query" : "INSERT INTO survey_admins \n (name , password, secret) VALUES ($1, $2, $3)"
2021-10-13 14:10:45 +05:30
} ,
2023-03-14 20:47:51 +05:30
"10924f3726a45c3bc709118375d691f2867bbcd50dc47a000ac9bf3ff878c97c" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Varchar"
} ,
{
"name" : "id" ,
"ordinal" : 1 ,
"type_info" : "Uuid"
}
] ,
"nullable" : [
false ,
false
] ,
"parameters" : {
"Left" : [ ]
}
} ,
"query" : "SELECT name, id FROM survey_campaigns ORDER BY id;"
} ,
2023-02-14 17:25:27 +05:30
"117f1ae18f6a3936f27446b75b555951fe217d3a3cefe40a006fdd3cb31f0ac4" : {
2021-10-11 09:56:15 +05:30
"describe" : {
2023-02-14 17:25:27 +05:30
"columns" : [
{
"name" : "id" ,
"ordinal" : 0 ,
"type_info" : "Int4"
}
] ,
"nullable" : [
false
] ,
2021-10-11 09:56:15 +05:30
"parameters" : {
"Left" : [
2023-02-14 17:25:27 +05:30
"Uuid" ,
"Uuid" ,
2021-10-11 09:56:15 +05:30
"Varchar" ,
2023-02-14 17:25:27 +05:30
"Varchar" ,
"Int4" ,
"Timestamptz" ,
"Text"
2021-10-11 09:56:15 +05:30
]
2022-03-26 12:45:36 +05:30
}
} ,
2023-02-14 17:25:27 +05:30
"query" : "INSERT INTO survey_responses (\n user_id,\n campaign_id,\n device_user_provided,\n device_software_recognised,\n threads,\n submitted_at,\n submission_bench_type_id\n ) VALUES (\n $1, $2, $3, $4, $5, $6,\n (SELECT ID FROM survey_bench_type WHERE name = $7)\n )\n RETURNING ID;"
2021-10-11 09:56:15 +05:30
} ,
"1373df097fa0e58b23a374753318ae53a44559aa0e7eb64680185baf1c481723" : {
2021-10-06 19:00:53 +05:30
"describe" : {
"columns" : [
{
2021-10-11 09:56:15 +05:30
"name" : "password" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-11 09:56:15 +05:30
"type_info" : "Text"
2021-10-06 19:00:53 +05:30
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
false
] ,
2021-10-06 19:00:53 +05:30
"parameters" : {
"Left" : [
2021-10-10 19:29:10 +05:30
"Text"
2021-10-06 19:00:53 +05:30
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT password FROM survey_admins WHERE name = ($1)"
2021-10-10 19:29:10 +05:30
} ,
2023-03-12 23:10:26 +05:30
"15a8484de6f035e56c34ce3f6979eadea81f125933f76261c8b3c8319d43bbe0" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
"ordinal" : 0 ,
"type_info" : "Varchar"
}
] ,
"nullable" : [
false
] ,
"parameters" : {
"Left" : [
"Uuid"
]
}
} ,
"query" : "SELECT\n survey_admins.name\n FROM\n survey_admins\n INNER JOIN survey_campaigns ON\n survey_admins.ID = survey_campaigns.user_id\n WHERE\n survey_campaigns.ID = $1\n "
} ,
2021-10-11 09:56:15 +05:30
"19686bfe8772cbc6831d46d18994e2b9aa40c7181eae9a31e51451cce95f04e8" : {
2021-10-10 19:29:10 +05:30
"describe" : {
2021-10-11 09:56:15 +05:30
"columns" : [
{
"name" : "name" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-11 09:56:15 +05:30
"type_info" : "Varchar"
} ,
{
"name" : "password" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 1 ,
2021-10-11 09:56:15 +05:30
"type_info" : "Text"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
false ,
false
] ,
2021-10-10 19:29:10 +05:30
"parameters" : {
"Left" : [
2021-10-11 09:56:15 +05:30
"Text"
2021-10-10 19:29:10 +05:30
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT name, password FROM survey_admins WHERE email = ($1)"
2021-10-10 19:29:10 +05:30
} ,
2023-02-14 17:25:27 +05:30
"1972be28a6bda2c3a3764a836e95c8cb0c5db277fc4c8a9b19951a03166c6492" : {
"describe" : {
"columns" : [ ] ,
"nullable" : [ ] ,
"parameters" : {
"Left" : [
"Text" ,
"Uuid"
]
}
} ,
"query" : "DELETE \n FROM survey_campaigns \n WHERE \n user_id = (\n SELECT \n ID \n FROM \n survey_admins \n WHERE \n name = $1\n )\n AND\n id = ($2)"
} ,
2021-10-11 09:56:15 +05:30
"1b7e17bfc949fa97e8dec1f95e35a02bcf3aa1aa72a1f6f6c8884e885fc3b953" : {
2021-10-10 19:29:10 +05:30
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-10 19:29:10 +05:30
"parameters" : {
"Left" : [
"Varchar" ,
2021-10-11 09:56:15 +05:30
"Text" ,
2021-10-10 19:29:10 +05:30
"Varchar" ,
2021-10-11 09:56:15 +05:30
"Varchar"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "insert into survey_admins \n (name , password, email, secret) values ($1, $2, $3, $4)"
2021-10-11 09:56:15 +05:30
} ,
2021-10-11 10:25:45 +05:30
"2ccaecfee4d2f29ef5278188b304017719720aa986d680d4727a1facbb869c7a" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "DELETE FROM survey_admins WHERE name = ($1)"
2021-10-11 10:25:45 +05:30
} ,
2021-10-11 09:56:15 +05:30
"43b3e771f38bf8059832169227705be06a28925af1b3799ffef5371d511fd138" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 09:56:15 +05:30
"parameters" : {
"Left" : [
"Timestamptz" ,
"Uuid"
2021-10-10 19:29:10 +05:30
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "\n INSERT INTO survey_users (created_at, id) VALUES($1, $2)"
2021-10-10 19:29:10 +05:30
} ,
2021-10-11 10:25:45 +05:30
"536541ecf2e1c0403c74b6e2e09b42b73a7741ae4a348ff539ac410022e03ace" : {
"describe" : {
"columns" : [
{
"name" : "exists" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-11 10:25:45 +05:30
"type_info" : "Bool"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
null
] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT EXISTS (SELECT 1 from survey_admins WHERE name = $1)"
2021-10-11 10:25:45 +05:30
} ,
"55dde28998a6d12744806035f0a648494a403c7d09ea3caf91bf54869a81aa73" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Text" ,
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "UPDATE survey_admins set password = $1\n WHERE name = $2"
2021-10-11 10:25:45 +05:30
} ,
2023-02-14 17:25:27 +05:30
"57c673ad8529371d77aa305917cf680dd2273ead74c3583ef0322f472b1d33fd" : {
"describe" : {
"columns" : [
{
"name" : "id" ,
"ordinal" : 0 ,
"type_info" : "Int4"
} ,
{
"name" : "device_software_recognised" ,
"ordinal" : 1 ,
"type_info" : "Varchar"
} ,
{
"name" : "threads" ,
"ordinal" : 2 ,
"type_info" : "Int4"
} ,
{
"name" : "user_id" ,
"ordinal" : 3 ,
"type_info" : "Uuid"
} ,
{
"name" : "submitted_at" ,
"ordinal" : 4 ,
"type_info" : "Timestamptz"
} ,
{
"name" : "device_user_provided" ,
"ordinal" : 5 ,
"type_info" : "Varchar"
} ,
{
"name" : "name" ,
"ordinal" : 6 ,
"type_info" : "Varchar"
}
] ,
"nullable" : [
false ,
false ,
true ,
false ,
false ,
false ,
false
] ,
"parameters" : {
"Left" : [
"Uuid" ,
"Text" ,
"Int8" ,
"Int8"
]
}
} ,
"query" : "SELECT\n survey_responses.ID,\n survey_responses.device_software_recognised,\n survey_responses.threads,\n survey_responses.user_id,\n survey_responses.submitted_at,\n survey_responses.device_user_provided,\n survey_bench_type.name\n FROM\n survey_responses\n INNER JOIN survey_bench_type ON\n survey_responses.submission_bench_type_id = survey_bench_type.ID\n WHERE\n survey_responses.campaign_id = (\n SELECT ID FROM survey_campaigns\n WHERE\n ID = $1\n AND\n user_id = (SELECT ID FROM survey_admins WHERE name = $2)\n )\n LIMIT $3 OFFSET $4"
} ,
2021-10-13 14:10:45 +05:30
"58ec3b8f98c27e13ec2732f8ee23f6eb9845ac5d9fd97b1e5c9f2eed4b1f5693" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-13 14:10:45 +05:30
"type_info" : "Varchar"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
false
] ,
2021-10-13 14:10:45 +05:30
"parameters" : {
"Left" : [
"Uuid" ,
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT name \n FROM survey_campaigns\n WHERE \n id = $1\n AND\n user_id = (SELECT ID from survey_admins WHERE name = $2)"
2021-10-13 14:10:45 +05:30
} ,
2021-10-11 10:25:45 +05:30
"683707dbc847b37c58c29aaad0d1a978c9fe0657da13af99796e4461134b5a43" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Varchar" ,
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "UPDATE survey_admins set email = $1\n WHERE name = $2"
2021-10-11 10:25:45 +05:30
} ,
"6a26daa84578aed2b2085697cb8358ed7c0a50ba9597fd387b4b09b0a8a154db" : {
"describe" : {
"columns" : [
{
"name" : "exists" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-11 10:25:45 +05:30
"type_info" : "Bool"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
null
] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT EXISTS (SELECT 1 from survey_admins WHERE email = $1)"
2021-10-11 10:25:45 +05:30
} ,
2021-10-13 14:10:45 +05:30
"70cc7bfc9b6ff5b68db70c069c0947d51bfc4a53cedc020016ee25ff98586c93" : {
"describe" : {
"columns" : [
{
"name" : "name" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-13 14:10:45 +05:30
"type_info" : "Varchar"
} ,
{
"name" : "id" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 1 ,
2021-10-13 14:10:45 +05:30
"type_info" : "Uuid"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
false ,
false
] ,
2021-10-13 14:10:45 +05:30
"parameters" : {
"Left" : [
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT \n name, id\n FROM \n survey_campaigns \n WHERE\n user_id = (\n SELECT \n ID\n FROM \n survey_admins\n WHERE\n name = $1\n )"
2021-10-13 14:10:45 +05:30
} ,
2023-02-14 17:25:27 +05:30
"74c41e33f91cf31ea13582c8b3ca464544374842450d580517ca2bd01d67402e" : {
"describe" : {
"columns" : [
{
"name" : "id" ,
"ordinal" : 0 ,
"type_info" : "Int4"
} ,
{
"name" : "device_software_recognised" ,
"ordinal" : 1 ,
"type_info" : "Varchar"
} ,
{
"name" : "threads" ,
"ordinal" : 2 ,
"type_info" : "Int4"
} ,
{
"name" : "user_id" ,
"ordinal" : 3 ,
"type_info" : "Uuid"
} ,
{
"name" : "submitted_at" ,
"ordinal" : 4 ,
"type_info" : "Timestamptz"
} ,
{
"name" : "device_user_provided" ,
"ordinal" : 5 ,
"type_info" : "Varchar"
} ,
{
"name" : "name" ,
"ordinal" : 6 ,
"type_info" : "Varchar"
}
] ,
"nullable" : [
false ,
false ,
true ,
false ,
false ,
false ,
false
] ,
"parameters" : {
"Left" : [
"Uuid" ,
"Text" ,
"Text" ,
"Int8" ,
"Int8"
]
}
} ,
"query" : "SELECT\n survey_responses.ID,\n survey_responses.device_software_recognised,\n survey_responses.threads,\n survey_responses.user_id,\n survey_responses.submitted_at,\n survey_responses.device_user_provided,\n survey_bench_type.name\n FROM\n survey_responses\n INNER JOIN survey_bench_type ON\n survey_responses.submission_bench_type_id = survey_bench_type.ID\n WHERE\n survey_bench_type.name = $3\n AND\n survey_responses.campaign_id = (\n SELECT ID FROM survey_campaigns\n WHERE\n ID = $1\n AND\n user_id = (SELECT ID FROM survey_admins WHERE name = $2)\n )\n LIMIT $4 OFFSET $5"
} ,
2021-10-11 19:17:28 +05:30
"82feafc36533144e49ba374c8c47ca4aa0d6558a9803778ad28cfa7b62382c3e" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 19:17:28 +05:30
"parameters" : {
"Left" : [
"Text" ,
"Uuid" ,
"Varchar" ,
"Int4Array" ,
"Timestamptz"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "\n INSERT INTO survey_campaigns (\n user_id, ID, name, difficulties, created_at\n ) VALUES(\n (SELECT id FROM survey_admins WHERE name = $1),\n $2, $3, $4, $5\n );"
2021-10-11 19:17:28 +05:30
} ,
2023-02-14 17:25:27 +05:30
"858a4c06a5c1ba7adb79bcac7d42d106d09d0cbff10c197f2242dcb5c437a1df" : {
2021-10-11 09:56:15 +05:30
"describe" : {
"columns" : [
{
2023-02-14 17:25:27 +05:30
"name" : "created_at" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2023-02-14 17:25:27 +05:30
"type_info" : "Timestamptz"
} ,
{
"name" : "id" ,
"ordinal" : 1 ,
"type_info" : "Uuid"
2021-10-11 09:56:15 +05:30
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
2023-02-14 17:25:27 +05:30
false ,
2022-03-26 12:45:36 +05:30
false
] ,
2021-10-11 09:56:15 +05:30
"parameters" : {
"Left" : [
2023-02-14 17:25:27 +05:30
"Uuid"
2021-10-11 09:56:15 +05:30
]
2022-03-26 12:45:36 +05:30
}
} ,
2023-02-14 17:25:27 +05:30
"query" : "SELECT\n created_at,\n ID\n FROM\n survey_users\n WHERE\n ID = $1\n "
2021-10-11 09:56:15 +05:30
} ,
2021-10-11 18:28:45 +05:30
"9cdade613ce724631cc3f187510758ee0929e93ff3f8ce81fe35594756644246" : {
"describe" : {
"columns" : [
{
"name" : "difficulties" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-11 18:28:45 +05:30
"type_info" : "Int4Array"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
false
] ,
2021-10-11 18:28:45 +05:30
"parameters" : {
"Left" : [
"Uuid"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT difficulties FROM survey_campaigns WHERE id = $1;"
2021-10-11 18:28:45 +05:30
} ,
2021-10-11 09:56:15 +05:30
"a721cfa249acf328c2f29c4cf8c2aeba1a635bcf49d18ced5474caa10b7cae4f" : {
2021-10-10 19:29:10 +05:30
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-10 19:29:10 +05:30
"parameters" : {
"Left" : [
"Int4" ,
"Int4" ,
"Float4"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "INSERT INTO survey_benches \n (resp_id, difficulty, duration) \n VALUES ($1, $2, $3);"
2021-10-11 09:56:15 +05:30
} ,
2021-10-11 10:25:45 +05:30
"ab951c5c318174c6538037947c2f52c61bcfe5e5be1901379b715e77f5214dd2" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Varchar" ,
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "UPDATE survey_admins set secret = $1\n WHERE name = $2"
2021-10-11 10:25:45 +05:30
} ,
2023-02-14 17:25:27 +05:30
"b2619292aa6bd1ac38dca152cbe607b795a151ddc212361a3c6d8c70ea1c93eb" : {
2021-10-11 13:57:07 +05:30
"describe" : {
2023-02-14 17:25:27 +05:30
"columns" : [
{
"name" : "duration" ,
"ordinal" : 0 ,
"type_info" : "Float4"
} ,
{
"name" : "difficulty" ,
"ordinal" : 1 ,
"type_info" : "Int4"
}
] ,
"nullable" : [
false ,
false
] ,
2021-10-11 13:57:07 +05:30
"parameters" : {
"Left" : [
"Int4"
]
2022-03-26 12:45:36 +05:30
}
} ,
2023-02-14 17:25:27 +05:30
"query" : "SELECT\n duration,\n difficulty\n FROM\n survey_benches\n WHERE\n resp_id = $1\n "
2021-10-11 13:57:07 +05:30
} ,
2021-10-11 10:25:45 +05:30
"c757589ef26a005e3285e7ab20d8a44c4f2e1cb125f8db061dd198cc380bf807" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Varchar" ,
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "UPDATE survey_admins set name = $1\n WHERE name = $2"
2021-10-11 10:25:45 +05:30
} ,
"e9cf5d6d8c9e8327d5c809d47a14a933f324e267f1e7dbb48e1caf1c021adc3f" : {
"describe" : {
"columns" : [
{
"name" : "secret" ,
2022-03-26 12:45:36 +05:30
"ordinal" : 0 ,
2021-10-11 10:25:45 +05:30
"type_info" : "Varchar"
}
] ,
2022-03-26 12:45:36 +05:30
"nullable" : [
false
] ,
2021-10-11 10:25:45 +05:30
"parameters" : {
"Left" : [
"Text"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "SELECT secret FROM survey_admins WHERE name = ($1)"
2021-10-11 10:25:45 +05:30
} ,
2023-03-12 23:10:26 +05:30
"efa0e41910fa5bcb187ba9e2fc8f37bee5b25ffe9a2d175f39a69899bc559965" : {
"describe" : {
"columns" : [
{
"name" : "id" ,
"ordinal" : 0 ,
"type_info" : "Uuid"
} ,
{
"name" : "name" ,
"ordinal" : 1 ,
"type_info" : "Varchar"
} ,
{
"name" : "difficulties" ,
"ordinal" : 2 ,
"type_info" : "Int4Array"
} ,
{
"name" : "created_at" ,
"ordinal" : 3 ,
"type_info" : "Timestamptz"
}
] ,
"nullable" : [
false ,
false ,
false ,
false
] ,
"parameters" : {
"Left" : [ ]
}
} ,
"query" : "SELECT ID, name, difficulties, created_at FROM survey_campaigns"
} ,
2021-10-11 09:56:15 +05:30
"fcdc5fe5d496eb516c805e64ec96d9626b74ab33cd6e75e5a08ae88967403b72" : {
"describe" : {
"columns" : [ ] ,
2022-03-26 12:45:36 +05:30
"nullable" : [ ] ,
2021-10-11 09:56:15 +05:30
"parameters" : {
"Left" : [
"Int4" ,
"Uuid" ,
"Uuid"
]
2022-03-26 12:45:36 +05:30
}
} ,
"query" : "INSERT INTO survey_response_tokens \n (resp_id, user_id, id)\n VALUES ($1, $2, $3);"
2021-10-06 19:00:53 +05:30
}
}