{
  "artifact": {
    "bytes": 12802,
    "format": "sql",
    "mediaType": "text/sql",
    "path": "samples/states/supabase/ecommerce-database/state.sql",
    "sha256": "073226192a4dc49294c2b834d2434cb3bdd3558e11e0055b5b8a9f23facd37a3"
  },
  "capabilities": {
    "limitations": [
      "SQL samples are bounded to the safe state-loader subset; hosted reset behavior requires explicit certification."
    ],
    "required": [
      "state.read",
      "state.load.sql",
      "state.reset",
      "rest.tables"
    ],
    "supportedSurface": "PostgreSQL schema and fixture states with REST data-plane reads and writes."
  },
  "category": "populated",
  "displayName": "Supabase populated ecommerce database",
  "entityCounts": {
    "collections": {
      "_migration_test": 3,
      "_seed_data": 5,
      "orders": 30,
      "payments": 25,
      "products": 15,
      "subscriptions": 15,
      "supabase_migrations.schema_migrations": 3,
      "test_orders": 6,
      "test_payments": 4,
      "test_users": 6,
      "users": 20
    },
    "total": 132
  },
  "environmentId": "supabase",
  "expectedDiff": {
    "changedPathsInclude": [
      "database.tables"
    ],
    "exact": false,
    "notes": "Hosted promotion must observe every listed path after the provider-native mutation; dynamic provider ids and timestamps are excluded from exact matching."
  },
  "expectedFirstRead": {
    "body": null,
    "expectedStatus": [
      200
    ],
    "method": "GET",
    "operationId": "readUsersTable",
    "path": "/rest/v1/users?select=*",
    "transport": "provider-rest"
  },
  "id": "supabase.ecommerce-database.v1",
  "provenance": {
    "authoredBy": "archal",
    "kind": "derived-fixture",
    "sanitizationNotes": [
      "Replaced 26 credential-shaped or non-example email SQL literal(s)."
    ],
    "sourcePath": "clones/supabase/seeds/ecommerce.sql",
    "sourceSha256": "a3e25979e36940737003a85e89656ddd7d5fa14f486a4e5155e61af2f4e9026f",
    "transformationNotes": [
      "Normalized line endings and sanitized literals from the pinned SQL fixture.",
      "Retained the complete selected source fixture; no tables or rows were sliced."
    ]
  },
  "purpose": "Exercise production and test tables for users, products, orders, payments, subscriptions, migrations, and indexes.",
  "qualification": {
    "candidate": {
      "basis": "catalog-admission",
      "status": "passed"
    },
    "certification": {
      "evidencePath": null,
      "lastHostedVerificationAt": null,
      "runtimeBundleDigest": null,
      "sourceCommit": null,
      "status": "unknown"
    },
    "isolation": {
      "lastVerifiedAt": null,
      "status": "unknown"
    },
    "reset": {
      "expected": "restores-original-session-seed",
      "lastVerifiedAt": null,
      "status": "unknown"
    },
    "validation": {
      "checks": [
        "artifact-hash",
        "historical-source-lock",
        "state-contract",
        "scenario-semantics",
        "relationship-closure",
        "secret-scan",
        "size-limit"
      ],
      "status": "passed",
      "validator": "archal.environment-samples.v1"
    }
  },
  "representativeMutation": {
    "body": {
      "email": "maya.chen@example.test",
      "name": "Maya Chen"
    },
    "expectedStatus": [
      200,
      201,
      204
    ],
    "method": "POST",
    "operationId": "insertRow",
    "path": "/rest/v1/users",
    "transport": "provider-rest"
  },
  "schema": "archal.environment-sample",
  "schemaVersion": 1,
  "slug": "ecommerce-database",
  "stateContract": {
    "format": "sql",
    "schema": "archal.environment-state.supabase",
    "version": 1
  }
}
