using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DodoSSH.Client.Storage.Migrations
{
    /// <inheritdoc />
    public partial class AddRememberedSignIn : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "remembered_sign_in",
                columns: table => new
                {
                    id = table.Column<int>(type: "INTEGER", nullable: false),
                    sealed_refresh_token = table.Column<byte[]>(type: "BLOB", nullable: false),
                    updated_at_utc = table.Column<long>(type: "INTEGER", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("pk_remembered_sign_in", x => x.id);
                    table.CheckConstraint("ck_remembered_sign_in_singleton", "id = 1");
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "remembered_sign_in");
        }
    }
}
