using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MTWorkHR.Infrastructure.Migrations
{
///
public partial class addInvoice : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Invoice",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreateUser = table.Column(type: "nvarchar(450)", maxLength: 450, nullable: true),
UpdateUser = table.Column(type: "nvarchar(450)", maxLength: 450, nullable: true),
CreateDate = table.Column(type: "datetime2", nullable: false),
UpdateDate = table.Column(type: "datetime2", nullable: true),
IsDeleted = table.Column(type: "bit", nullable: false),
DeleteUserId = table.Column(type: "nvarchar(450)", maxLength: 450, nullable: true),
InvoiceNumber = table.Column(type: "nvarchar(max)", nullable: true),
InvoiceDate = table.Column(type: "datetime2", nullable: true),
Amount = table.Column(type: "decimal(18,2)", nullable: true),
Status = table.Column(type: "int", nullable: true),
ContractId = table.Column(type: "int", nullable: true),
UserId = table.Column(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Invoice", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Invoice");
}
}
}