using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Monitoring.Infrastructure.Data.Migrations;

/// <inheritdoc />
public partial class AddAssetState : Migration
{
	/// <inheritdoc />
	protected override void Up(MigrationBuilder migrationBuilder)
	{
		_ = migrationBuilder.AddColumn<bool>(
			name: "HasAlarms",
			table: "Zones",
			type: "boolean",
			nullable: false,
			defaultValue: false);

		_ = migrationBuilder.AddColumn<bool>(
			name: "HasFaults",
			table: "Zones",
			type: "boolean",
			nullable: false,
			defaultValue: false);

		_ = migrationBuilder.AddColumn<bool>(
			name: "HasAlarms",
			table: "Assets",
			type: "boolean",
			nullable: false,
			defaultValue: false);

		_ = migrationBuilder.AddColumn<bool>(
			name: "HasFaults",
			table: "Assets",
			type: "boolean",
			nullable: false,
			defaultValue: false);

		_ = migrationBuilder.AddColumn<bool>(
			name: "HasAlarms",
			table: "Areas",
			type: "boolean",
			nullable: false,
			defaultValue: false);

		_ = migrationBuilder.AddColumn<bool>(
			name: "HasFaults",
			table: "Areas",
			type: "boolean",
			nullable: false,
			defaultValue: false);
	}

	/// <inheritdoc />
	protected override void Down(MigrationBuilder migrationBuilder)
	{
		_ = migrationBuilder.DropColumn(
			name: "HasAlarms",
			table: "Zones");

		_ = migrationBuilder.DropColumn(
			name: "HasFaults",
			table: "Zones");

		_ = migrationBuilder.DropColumn(
			name: "HasAlarms",
			table: "Assets");

		_ = migrationBuilder.DropColumn(
			name: "HasFaults",
			table: "Assets");

		_ = migrationBuilder.DropColumn(
			name: "HasAlarms",
			table: "Areas");

		_ = migrationBuilder.DropColumn(
			name: "HasFaults",
			table: "Areas");
	}
}
