_template-service/Migrations/20241213175020_greets.cs

35 lines
954 B
C#
Raw Permalink Normal View History

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace $REPO_NAME.Migrations
{
/// <inheritdoc />
public partial class greets : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Greets",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
Amount = table.Column<int>(type: "integer", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Greets", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Greets");
}
}
}