openapi: "3.0.3"
info:
  title: "Customer directory fixture"
  version: "1.0.0"
  description: "One table with three constraints is enough to tell the two tools apart on output shape. The country check constraint is the one that produces the visible difference, because a schema-driven faker honours it and a field-driven one does not. The tier enum has three members and every generated row has to pick one of them. The email uniqueness is what makes the row counts differ between two runs with different seeds."
paths: {}
x-domain-id: "cmp_customers"
x-dialect: "postgres"
components:
  schemas:
    customers:
      type: "object"
      x-primary-key: "id"
      required: ["id", "first_name", "last_name", "email", "country", "tier", "created_at"]
      properties:
        id:
          type: "string"
          format: "uuid"
        first_name:
          type: "string"
        last_name:
          type: "string"
        email:
          type: "string"
          format: "email"
          x-unique: true
        country:
          type: "string"
          minLength: 2
          maxLength: 2
        tier:
          type: "string"
          enum: ["free", "pro", "enterprise"]
        created_at:
          type: "string"
          format: "date-time"
