{ "CORS on the API > allows the origins in PROTOBASE_CORS_ORIGINS on resources, system endpoints, functions and their problems": { "(hooks)#0": [ {"sql":"select relkind from pg_class where oid = to_regclass($1)","params":["\"companies\""],"result":{"command":"SELECT","rowCount":1,"columns":[["relkind",18]],"rows":[["r"]]}}, {"sql":"\n select ic.relname as name, am.amname as method, (i.indpred is not null) as partial, a.attname::text as column,\n pg_get_indexdef(i.indexrelid, k.ord::int, true) as definition, oc.opcname::text as opclass\n from pg_index i\n join pg_class ic on ic.oid = i.indexrelid\n join pg_am am on am.oid = ic.relam\n cross join lateral unnest(i.indkey::int2[], i.indclass::oid[]) with ordinality k(attnum, opclass, ord)\n left join pg_attribute a on a.attrelid = i.indrelid and a.attnum = k.attnum and k.attnum > 0\n join pg_opclass oc on oc.oid = k.opclass\n where i.indrelid = to_regclass($1) and i.indisvalid and i.indisready and k.ord <= i.indnkeyatts\n order by ic.relname, k.ord\n ","params":["\"companies\""],"result":{"command":"SELECT","rowCount":11,"columns":[["name",19],["method",19],["partial",16],["column",25],["definition",25],["opclass",25]],"rows":[ ["companies_organization_id_created_at_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_created_at_idx","btree","f","created_at","created_at","timestamptz_ops"], ["companies_organization_id_id_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_id_idx","btree","f","id","id","int4_ops"], ["companies_organization_id_name_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_name_idx","btree","f","name","name","text_ops"], ["companies_organization_id_revenue_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_revenue_idx","btree","f","revenue","revenue","numeric_ops"], ["companies_organization_id_status_idx","btree","f","organization_id","organization_id","int4_ops"], ["companies_organization_id_status_idx","btree","f","status","status","text_ops"], ["companies_pkey","btree","f","id","id","int4_ops"] ]}}, {"sql":"start transaction read only","result":{"command":"START","rowCount":null,"columns":[],"rows":[]}}, {"sql":"select set_config($1, $2, true)","params":["statement_timeout","1000"],"result":{"command":"SELECT","rowCount":1,"columns":[["set_config",25]],"rows":[["1s"]]}}, {"sql":"select \"t\".\"id\" as \"id\", \"t\".\"organization_id\" as \"organizationId\", \"t\".\"name\" as \"name\", \"t\".\"status\" as \"status\", \"t\".\"revenue\" as \"revenue\", \"t\".\"notes\" as \"notes\", \"t\".\"meta\" as \"meta\", \"t\".\"created_at\" as \"createdAt\", \"t\".\"updated_at\" as \"updatedAt\", \"t\".\"deleted_at\" as \"deletedAt\", \"t\".\"updated_at\"::text as \"__pb_etag\", \"t\".\"id\"::text as \"__pb_key0\" from \"companies\" as \"t\" where \"t\".\"deleted_at\" is null and \"t\".\"organization_id\" = $1 order by \"t\".\"id\" asc limit $2","params":["1","51"],"result":{"command":"SELECT","rowCount":51,"columns":[["id",23],["organizationId",23],["name",25],["status",25],["revenue",1700],["notes",25],["meta",3802],["createdAt",1184],["updatedAt",1184],["deletedAt",1184],["__pb_etag",25],["__pb_key0",25]],"rows":[ ["1","1","Company 1","won","1.00",null,null,"2026-01-02 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","1"], ["2","1","Company 2","lost","2.00",null,null,"2026-01-03 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","2"], ["3","1","Company 3","open","3.00",null,null,"2026-01-04 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","3"], ["4","1","Company 4","won","4.00",null,null,"2026-01-05 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","4"], ["5","1","Company 5","lost","5.00",null,null,"2026-01-06 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","5"], ["6","1","Company 6","open","6.00",null,null,"2026-01-07 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","6"], ["7","1","Company 7","won","7.00",null,null,"2026-01-08 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","7"], ["8","1","Company 8","lost","8.00",null,null,"2026-01-09 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","8"], ["9","1","Company 9","open","9.00",null,null,"2026-01-10 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","9"], ["10","1","Company 10","won","10.00",null,null,"2026-01-11 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","10"], ["11","1","Company 11","lost","11.00",null,null,"2026-01-12 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","11"], ["12","1","Company 12","open","12.00",null,null,"2026-01-13 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","12"], ["13","1","Company 13","won","13.00",null,null,"2026-01-14 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","13"], ["14","1","Company 14","lost","14.00",null,null,"2026-01-15 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","14"], ["15","1","Company 15","open","15.00",null,null,"2026-01-16 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","15"], ["16","1","Company 16","won","16.00",null,null,"2026-01-17 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","16"], ["17","1","Company 17","lost","17.00",null,null,"2026-01-18 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","17"], ["18","1","Company 18","open","18.00",null,null,"2026-01-19 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","18"], ["19","1","Company 19","won","19.00",null,null,"2026-01-20 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","19"], ["20","1","Company 20","lost","20.00",null,null,"2026-01-21 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","20"], ["21","1","Company 21","open","21.00",null,null,"2026-01-22 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","21"], ["22","1","Company 22","won","22.00",null,null,"2026-01-23 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","22"], ["23","1","Company 23","lost","23.00",null,null,"2026-01-24 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","23"], ["24","1","Company 24","open","24.00",null,null,"2026-01-25 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","24"], ["25","1","Company 25","won","25.00",null,null,"2026-01-26 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","25"], ["26","1","Company 26","lost","26.00",null,null,"2026-01-27 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","26"], ["27","1","Company 27","open","27.00",null,null,"2026-01-28 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","27"], ["28","1","Company 28","won","28.00",null,null,"2026-01-29 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","28"], ["29","1","Company 29","lost","29.00",null,null,"2026-01-30 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","29"], ["30","1","Company 30","open","30.00",null,null,"2026-01-31 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","30"], ["31","1","Company 31","won","31.00",null,null,"2026-02-01 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","31"], ["32","1","Company 32","lost","32.00",null,null,"2026-02-02 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","32"], ["33","1","Company 33","open","33.00",null,null,"2026-02-03 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","33"], ["34","1","Company 34","won","34.00",null,null,"2026-02-04 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","34"], ["35","1","Company 35","lost","35.00",null,null,"2026-02-05 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","35"], ["36","1","Company 36","open","36.00",null,null,"2026-02-06 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","36"], ["37","1","Company 37","won","37.00",null,null,"2026-02-07 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","37"], ["38","1","Company 38","lost","38.00",null,null,"2026-02-08 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","38"], ["39","1","Company 39","open","39.00",null,null,"2026-02-09 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","39"], ["40","1","Company 40","won","40.00",null,null,"2026-02-10 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","40"], ["41","1","Company 41","lost","41.00",null,null,"2026-02-11 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","41"], ["42","1","Company 42","open","42.00",null,null,"2026-02-12 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","42"], ["43","1","Company 43","won","43.00",null,null,"2026-02-13 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","43"], ["44","1","Company 44","lost","44.00",null,null,"2026-02-14 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","44"], ["45","1","Company 45","open","45.00",null,null,"2026-02-15 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","45"], ["46","1","Company 46","won","46.00",null,null,"2026-02-16 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","46"], ["47","1","Company 47","lost","47.00",null,null,"2026-02-17 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","47"], ["48","1","Company 48","open","48.00",null,null,"2026-02-18 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","48"], ["49","1","Company 49","won","49.00",null,null,"2026-02-19 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","49"], ["50","1","Company 50","lost","50.00",null,null,"2026-02-20 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","50"], ["51","1","Company 51","open","51.00",null,null,"2026-02-21 00:00:00+00","2026-07-25 00:00:00+00",null,"2026-07-25 00:00:00+00","51"] ]}}, {"sql":"EXPLAIN (VERBOSE, FORMAT JSON) select 1 as \"one\" from \"companies\" as \"t\" where \"t\".\"deleted_at\" is null and \"t\".\"organization_id\" = $1","params":["1"],"result":{"command":"EXPLAIN","rowCount":null,"columns":[["QUERY PLAN",114]],"rows":[["[\n {\n \"Plan\": {\n \"Node Type\": \"Seq Scan\",\n \"Parallel Aware\": false,\n \"Async Capable\": false,\n \"Relation Name\": \"companies\",\n \"Schema\": \"public\",\n \"Alias\": \"t\",\n \"Startup Cost\": 0.00,\n \"Total Cost\": 80.75,\n \"Plan Rows\": 2970,\n \"Plan Width\": 4,\n \"Disabled\": false,\n \"Output\": [\"1\"],\n \"Filter\": \"((t.deleted_at IS NULL) AND (t.organization_id = 1))\"\n }\n }\n]"]]}}, {"sql":"commit","result":{"command":"COMMIT","rowCount":null,"columns":[],"rows":[]}} ] } }