using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskLedger.Api.Migrations
{
///
public partial class InitialCreate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Tasks",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Title = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false),
Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true),
IsCompleted = table.Column(type: "bit", nullable: false),
CreatedUtc = table.Column(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Tasks", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Tasks");
}
}
}