openapi: "3.0.3"
info:
  title: "Seed file format fixture"
  version: "1.0.0"
  description: "The format contract table on this page lists what a seed file has to record for each part of a spec. The mode enum is the one field that changes what the generated SQL does rather than what it contains. The count constraint is positive, so a file section that declares zero rows is invalid. The name uniqueness is what lets the generator tell two spec components apart."
paths: {}
x-domain-id: "spec_seedformat"
x-dialect: "postgres"
components:
  schemas:
    entities:
      type: "object"
      x-primary-key: "id"
      required: ["id", "name", "count", "mode"]
      properties:
        id:
          type: "string"
          format: "uuid"
        name:
          type: "string"
          x-unique: true
        count:
          type: "integer"
          minimum: 1
        mode:
          type: "string"
          enum: ["insert", "upsert", "truncate"]
