|
|
@ -0,0 +1,42 @@ |
|
|
|
using System; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
namespace BCS.BMC.Migrations |
|
|
|
{ |
|
|
|
public partial class CompanyMasters : Migration |
|
|
|
{ |
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "CompanyMaster", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<int>(type: "int", nullable: false) |
|
|
|
.Annotation("SqlServer:Identity", "1, 1"), |
|
|
|
CompanyName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
Url = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
DomainName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
SubDomainName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
CreatorUserId = table.Column<long>(type: "bigint", nullable: true), |
|
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
|
|
LastModifierUserId = table.Column<long>(type: "bigint", nullable: true), |
|
|
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false), |
|
|
|
DeleterUserId = table.Column<long>(type: "bigint", nullable: true), |
|
|
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_CompanyMaster", x => x.Id); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "CompanyMaster"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |