using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

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

            migrationBuilder.AddColumn<int>(
                name: "DndEndMinutes",
                table: "NotificationPreferences",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "DndStartMinutes",
                table: "NotificationPreferences",
                type: "integer",
                nullable: false,
                defaultValue: 0);

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

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

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

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

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