Table design SQL: thirteen synthetic constraint checks
Reported passed · vb236d3583fb5.bb1
View input and acceptance criteria
Input
Execute the three packaged table-design SQL examples against synthetic users, orders and profiles. Check email uniqueness, positive/non-null totals, foreign keys, NULL uniqueness, partitioned foreign keys, partial-index upsert and now() volatility. Use an isolated database with no production connection.
Acceptance criteria
Thirteen selected SQL assertions match on PostgreSQL 17.11. These checks do not exercise every recommendation, indexing strategy, PostgreSQL 18 feature, permissions or full AI skill.
Recorded outcome
Thirteen synthetic assertions for selected packaged table-design SQL and corrected constraint behavior only. No workload benchmark, production migration or full skill execution.
{
"executed_at": "2026-10-03T08:29:31.623571+00:00",
"server_version": "17.11 (Debian 17.11-1.pgdg12+2)",
"pgvector_version": "0.8.7",
"count": 13,
"checks": [
{
"case": "original_design_sql_block_1",
"passed": true
},
{
"case": "original_design_sql_block_2",
"passed": true
},
{
"case": "original_design_sql_block_3",
"passed": true
},
{
"case": "case_insensitive_unique_email",
"passed": true
},
{
"case": "order_positive_total",
"passed": true
},
{
"case": "order_total_not_null",
"passed": true
},
{
"case": "order_foreign_key",
"passed": true
},
{
"case": "ordinary_unique_allows_two_nulls",
"passed": true
},
{
"case": "corrected_unique_nulls_rejects_duplicate",
"passed": true
},
{
"case": "partitioned_foreign_key_valid",
"passed": true
},
{
"case": "partitioned_foreign_key_invalid",
"passed": true
},
{
"case": "partial_unique_index_upsert",
"passed": true
},
{
"case": "now_is_stable",
"passed": true
}
],
"source_file_sha256": {
"design-postgres-tables/SKILL.md": "b8cdd1255ea9e2d455544e5c5241921fde15da01b3ca06084e0e36780e52f1b9"
},
"probe_sha256": "b9bf96bf549066c34afec211519724330af701489c2718fba0179d82621ceee9",
"batch_sha256": "ffdc58d8b50dfde1f62e25b83d3dc3c1500e6a62df01a1a594d67f185b4e2191",
"skill_version": "b236d3583fb5.bb1",
"package_sha256": "362c9ccd5a3f2ebcd5f9e6443565068f2a2955c8dcd7e21d884d060a5a3fd009"
}Environment
Isolated disposable PostgreSQL 17.11 and pgvector 0.8.7; synthetic objects only, no production volume or connection. Memory-backed database, statement timeouts; QA superuser. Not a least-privilege audit.
Package SHA-256: 362c9ccd5a3f2ebcd5f9e6443565068f2a2955c8dcd7e21d884d060a5a3fd009
Outcome recorded: 2026-10-03 08:29 UTC