using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Health.Infrastructure.Data.Migrations
{
    /// <inheritdoc />
    public partial class AddHealthRecordReminder : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "HealthRecordReminder",
                table: "NotificationPreferences",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "HealthRecordReminderBloodPressure",
                table: "NotificationPreferences",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "HealthRecordReminderGlucose",
                table: "NotificationPreferences",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "HealthRecordReminderHeartRate",
                table: "NotificationPreferences",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "HealthRecordReminderSpO2",
                table: "NotificationPreferences",
                type: "boolean",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<bool>(
                name: "HealthRecordReminderWeight",
                table: "NotificationPreferences",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "HealthRecordReminder",
                table: "NotificationPreferences");

            migrationBuilder.DropColumn(
                name: "HealthRecordReminderBloodPressure",
                table: "NotificationPreferences");

            migrationBuilder.DropColumn(
                name: "HealthRecordReminderGlucose",
                table: "NotificationPreferences");

            migrationBuilder.DropColumn(
                name: "HealthRecordReminderHeartRate",
                table: "NotificationPreferences");

            migrationBuilder.DropColumn(
                name: "HealthRecordReminderSpO2",
                table: "NotificationPreferences");

            migrationBuilder.DropColumn(
                name: "HealthRecordReminderWeight",
                table: "NotificationPreferences");
        }
    }
}
