using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CompanyManagment.EFCore.Migrations
{
///
public partial class addadminmonthlyoverviewtable : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AdminMonthlyOverviews",
columns: table => new
{
id = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
WorkshopId = table.Column(type: "bigint", nullable: false),
Month = table.Column(type: "int", nullable: false),
Year = table.Column(type: "int", nullable: false),
Status = table.Column(type: "nvarchar(155)", maxLength: 155, nullable: false),
CreationDate = table.Column(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AdminMonthlyOverviews", x => x.id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AdminMonthlyOverviews");
}
}
}