{
  "id": "sequelize",
  "name": "Sequelize CLI",
  "description": "Command line interface for the Sequelize ORM.",
  "homepage": "https://sequelize.org",
  "executables": [
    "sequelize"
  ],
  "commands": {
    "format": 1,
    "label": "Sequelize",
    "description": "Run migrations and generate models. Seeders and project init are left out.",
    "quality": "ai-draft",
    "base": "fig:sequelize",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "db:migrate"
        ],
        "label": "Run migrations",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "to",
            "label": "Migrate up to",
            "type": "string",
            "option": [
              "--to"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "from",
            "label": "Start after",
            "type": "string",
            "option": [
              "--from"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "migrations_path",
            "label": "Migrations folder",
            "type": "path",
            "option": [
              "--migrations-path"
            ],
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "url",
            "label": "Connection string",
            "type": "string",
            "option": [
              "--url"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug output",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run pending migrations",
            "fields": [
              "env",
              "to"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "to",
              "env"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "from",
              "url",
              "debug",
              "migrations_path",
              "config"
            ]
          }
        ]
      },
      {
        "path": [
          "db:migrate:undo"
        ],
        "label": "Undo last migration",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "migrations_path",
            "label": "Migrations folder",
            "type": "path",
            "option": [
              "--migrations-path"
            ],
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "url",
            "label": "Connection string",
            "type": "string",
            "option": [
              "--url"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug output",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "undo",
            "label": "Undo last migration",
            "fields": [
              "env"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "env"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "config",
              "migrations_path",
              "url",
              "debug"
            ]
          }
        ]
      },
      {
        "path": [
          "model:generate"
        ],
        "label": "Generate a model",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sequelize.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Model name",
            "type": "string",
            "option": [
              "--name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "attributes",
            "label": "Attributes",
            "description": "e.g. name:string,age:integer",
            "type": "string",
            "option": [
              "--attributes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Overwrite existing",
            "type": "boolean",
            "option": [
              "--force"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "underscored",
            "label": "snake_case timestamps",
            "type": "boolean",
            "option": [
              "--underscored"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "migrations_path",
            "label": "Migrations folder",
            "type": "path",
            "option": [
              "--migrations-path"
            ],
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "url",
            "label": "Connection string",
            "type": "string",
            "option": [
              "--url"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "debug",
            "label": "Debug output",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "generate",
            "label": "Generate model",
            "fields": [
              "name",
              "attributes"
            ],
            "required": [
              "name",
              "attributes"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "attributes"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "force",
              "underscored",
              "env",
              "config",
              "migrations_path",
              "url",
              "debug"
            ]
          }
        ]
      }
    ]
  }
}
