Files
BitGet_API/Bitget_Server/Migrations/20240602102008_init1.cs

38 lines
1.2 KiB
C#
Raw Normal View History

2024-06-02 19:32:08 +09:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Bitget_Server.Migrations
{
/// <inheritdoc />
public partial class init1 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PushAlarms",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
AlarmTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Title = table.Column<string>(type: "nvarchar(max)", nullable: false),
Contents = table.Column<string>(type: "nvarchar(max)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PushAlarms", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PushAlarms");
}
}
}