{
  "databaseChangeLog": [
    {
      "changeSet": {
        "id": "Add jumps table",
        "author": "anibus",
        "changes": [
          {
            "createTable": {
              "tableName": "jumps",
              "columns": [
                {
                  "column": {
                    "name": "id",
                    "type": "int",
                    "autoIncrement": true,
                    "constraints": {
                      "primaryKey": true,
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "unit_id",
                    "type": "int",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "charge_regeneration",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "go_up_time",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "jump_distance_max",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "breakdown_time",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "charge_jump_cost_min",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "jump_height",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "charge_max",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "setup_time",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "charge_jump_cost_max",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "go_down_time",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "teleport",
                    "type": "boolean",
                    "value": false,
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "jump_time_max",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "jump_time_min",
                    "type": "float"
                  }
                },
                {
                  "column": {
                    "name": "jump_min_height",
                    "type": "float"
                  }
                }
              ]
            }
          },
          {
            "addForeignKeyConstraint": {
              "baseColumnNames": "unit_id",
              "baseTableName": "jumps",
              "constraintName": "fk_jumps_units",
              "referencedColumnNames": "id",
              "referencedTableName": "units",
              "onDelete": "CASCADE"
            }
          }
        ]
      }
    },
    {
      "changeSet": {
        "id": "Add unique constraint on jumps.unit_id",
        "author": "anibus",
        "changes": [
          {
            "addUniqueConstraint": {
              "columnNames": "unit_id",
              "tableName": "jumps",
              "constraintName": "uk_jumps_unit_id"
            }
          }
        ]
      }
    }
  ]
}
