{
"schema": "public",
"name": "orders",
"row_estimate": 248000,
"total_bytes": 47185920,
"size_human": "45 MB",
"columns": [
{
"name": "id",
"data_type": "uuid",
"is_nullable": false,
"default_value": "gen_random_uuid()",
"is_primary_key": true,
"stats": {
"null_fraction": 0.0,
"cardinality": "unique",
"distinct_count": 248000
}
},
{
"name": "status",
"data_type": "text",
"is_nullable": false,
"is_primary_key": false,
"stats": {
"null_fraction": 0.0,
"cardinality": "enum_like",
"distinct_count": 6,
"most_common_vals": ["paid", "shipped", "delivered", "pending", "draft", "cancelled"],
"most_common_freqs": [0.35, 0.25, 0.20, 0.10, 0.05, 0.05]
}
},
{
"name": "created_at",
"data_type": "timestamp with time zone",
"is_nullable": false,
"default_value": "now()",
"is_primary_key": false,
"stats": {
"null_fraction": 0.0,
"cardinality": "high_cardinality",
"distinct_count": 185000,
"min_value": "2022-01-15T08:30:00Z",
"max_value": "2026-02-25T19:45:00Z"
}
}
],
"foreign_keys": [
{
"constraint_name": "orders_customer_id_fkey",
"column_name": "customer_id",
"referenced_table": "public.customers",
"referenced_column": "id"
}
],
"indexes": [
{
"name": "orders_pkey",
"definition": "CREATE UNIQUE INDEX orders_pkey ON public.orders USING btree (id)",
"is_unique": true
},
{
"name": "orders_customer_id_idx",
"definition": "CREATE INDEX orders_customer_id_idx ON public.orders USING btree (customer_id)",
"is_unique": false
}
],
"stats_age": "2026-02-25T12:00:00Z",
"sample_rows": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "paid",
"amount_cents": 4999,
"created_at": "2026-01-15T14:30:00Z"
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"status": "shipped",
"amount_cents": 12500,
"created_at": "2026-02-01T09:15:00Z"
}
],
"index_usage": [
{
"name": "orders_pkey",
"scans": 152340,
"size_bytes": 5242880,
"size_human": "5120 kB"
},
{
"name": "orders_customer_id_idx",
"scans": 48210,
"size_bytes": 3145728,
"size_human": "3072 kB"
}
]
}