{
  "databaseChangeLog": [
    {
      "changeSet": {
        "id": "Add death_explosion_modifiers table",
        "author": "anibus",
        "changes": [
          {
            "createTable": {
              "tableName": "death_explosion_modifiers",
              "columns": [
                {
                  "column": {
                    "name": "id",
                    "type": "int",
                    "autoIncrement": true,
                    "constraints": {
                      "primaryKey": true,
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "reference",
                    "type": "varchar(255)"
                  }
                },{
                  "column": {
                    "name": "usage_type",
                    "type": "varchar(255)"
                  }
                },{
                  "column": {
                    "name": "value",
                    "type": "number"
                  }
                },{
                  "column": {
                    "name": "target",
                    "type": "varchar(255)"
                  }
                },{
                  "column": {
                    "name": "probability_of_applying",
                    "type": "number"
                  }
                },{
                  "column": {
                    "name": "exclusive",
                    "type": "boolean"
                  }
                },{
                  "column": {
                    "name": "application_type",
                    "type": "varchar(255)"
                  }
                },{
                  "column": {
                    "name": "max_life_time",
                    "type": "number"
                  }
                },{
                  "column": {
                    "name": "death_explosion_id",
                    "type": "int",
                    "constraints": {
                      "nullable": false
                    }
                  }
                }
              ]
            }
          },
          {
            "addForeignKeyConstraint":
            {
              "baseColumnNames":  "death_explosion_id",
              "baseTableName":  "death_explosion_modifiers",
              "constraintName":  "fk_death_explosion_death_explosion_modifiers",
              "referencedColumnNames":  "id",
              "referencedTableName":  "death_explosions",
              "onDelete": "CASCADE"
            }
          }
        ]
      }
    }
  ]
}
