Skip to content

Commit

Permalink
wgwrsasddfsa
Browse files Browse the repository at this point in the history
  • Loading branch information
GNUGradyn committed Jun 7, 2024
1 parent 49b2156 commit f6a5b2c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions JournalyApiV2/Data/Migrations/20240607002159_25.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;

#nullable disable

namespace JournalyApiV2.Data.Migrations
{
/// <inheritdoc />
public partial class _25 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AccountRecoveryToken",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
Token = table.Column<string>(type: "text", nullable: false),
UserId = table.Column<Guid>(type: "uuid", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AccountRecoveryToken", x => x.Id);
});
}

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

0 comments on commit f6a5b2c

Please sign in to comment.