{
  "databaseChangeLog": [
    {
      "changeSet": {
        "id": "Add weapons table",
        "author": "anibus",
        "changes": [
          {
            "createTable": {
              "tableName": "weapons",
              "columns": [
                {
                  "column": {
                    "name": "id",
                    "type": "int",
                    "autoIncrement": true,
                    "constraints": {
                      "primaryKey": true,
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "filename",
                    "type": "varchar(255)",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "name",
                    "type": "varchar(4096)"
                  }
                },{
                  "column": {
                    "name": "description",
                    "type": "varchar(5000)"
                  }
                },{
                  "column": {
                    "name": "cost_power",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "cost_requisition",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "cost_time_seconds",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "accuracy",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "reload_time",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "setup_time",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "accuracy_reduction_moving",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "min_range",
                    "type": "number"
                  }
                },{
                  "column": {
                    "name": "max_range",
                    "type": "number"
                  }
                },{
                  "column": {
                    "name": "min_damage",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "min_damage_value",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "max_damage",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "morale_damage",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "damage_radius",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "throw_force_min",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },{
                  "column": {
                    "name": "throw_force_max",
                    "type": "number",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "is_melee_weapon",
                    "type": "boolean",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "can_attack_air",
                    "type": "boolean",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "can_attack_ground",
                    "type": "boolean",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "have_equip_button",
                    "type": "boolean",
                    "constraints": {
                      "nullable": false
                    }
                  }
                },
                {
                  "column": {
                    "name": "icon",
                    "type": "varchar(128)"
                  }
                },
                {
                  "column": {
                    "name": "mod_id",
                    "type": "int",
                    "constraints": {
                      "nullable": false
                    }
                  }
                }
              ]
            }
          }
        ]
      }
    }
  ]
}
