migration changes
This commit is contained in:
@@ -1,122 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CompanyManagment.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class addcamerabugreport : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CameraBugReports",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
StackTrace = table.Column<string>(type: "ntext", nullable: true),
|
||||
Status = table.Column<int>(type: "int", nullable: false),
|
||||
Priority = table.Column<int>(type: "int", nullable: false),
|
||||
Type = table.Column<int>(type: "int", nullable: false),
|
||||
Flavor = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
LastUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
InstallTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
PackageName = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: true),
|
||||
BuildNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
AppVersion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
NetworkType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
IsCharging = table.Column<bool>(type: "bit", nullable: false),
|
||||
BatteryLevel = table.Column<int>(type: "int", nullable: false),
|
||||
StorageInMB = table.Column<int>(type: "int", nullable: false),
|
||||
MemoryInMB = table.Column<int>(type: "int", nullable: false),
|
||||
ScreenResolution = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
DeviceId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
||||
Manufacturer = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
Platform = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
OsVersion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
||||
DeviceModel = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
||||
AccountId = table.Column<long>(type: "bigint", nullable: true),
|
||||
UserEmail = table.Column<string>(type: "nvarchar(150)", maxLength: 150, nullable: false),
|
||||
Description = table.Column<string>(type: "ntext", nullable: false),
|
||||
Title = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_CameraBugReports", x => x.id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CameraBugReportLogs",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
CameraBugReportId = table.Column<long>(type: "bigint", nullable: false),
|
||||
Message = table.Column<string>(type: "ntext", nullable: false),
|
||||
Timestamp = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_CameraBugReportLogs", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "FK_CameraBugReportLogs_CameraBugReports_CameraBugReportId",
|
||||
column: x => x.CameraBugReportId,
|
||||
principalTable: "CameraBugReports",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CameraBugReportScreenshots",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<long>(type: "bigint", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
CameraBugReportId = table.Column<long>(type: "bigint", nullable: false),
|
||||
Base64Data = table.Column<string>(type: "ntext", nullable: false),
|
||||
FileName = table.Column<string>(type: "nvarchar(255)", maxLength: 255, nullable: true),
|
||||
UploadDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||
CreationDate = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_CameraBugReportScreenshots", x => x.id);
|
||||
table.ForeignKey(
|
||||
name: "FK_CameraBugReportScreenshots_CameraBugReports_CameraBugReportId",
|
||||
column: x => x.CameraBugReportId,
|
||||
principalTable: "CameraBugReports",
|
||||
principalColumn: "id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CameraBugReportLogs_CameraBugReportId",
|
||||
table: "CameraBugReportLogs",
|
||||
column: "CameraBugReportId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CameraBugReportScreenshots_CameraBugReportId",
|
||||
table: "CameraBugReportScreenshots",
|
||||
column: "CameraBugReportId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "CameraBugReportLogs");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "CameraBugReportScreenshots");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "CameraBugReports");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,15 +13,15 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace CompanyManagment.EFCore.Migrations
|
||||
{
|
||||
[DbContext(typeof(CompanyContext))]
|
||||
[Migration("20251207125001_add camera bug report")]
|
||||
partial class addcamerabugreport
|
||||
[Migration("20251213184424_testmig")]
|
||||
partial class testmig
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("ProductVersion", "10.0.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
@@ -313,44 +313,36 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReport", b =>
|
||||
{
|
||||
b.Property<long>("id")
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bigint");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<long?>("AccountId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("AppVersion")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("BatteryLevel")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("BuildNumber")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("DeviceId")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("DeviceModel")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Flavor")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("InstallTime")
|
||||
.HasColumnType("datetime2");
|
||||
@@ -362,37 +354,31 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Manufacturer")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("MemoryInMB")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("NetworkType")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("OsVersion")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PackageName")
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("nvarchar(150)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ScreenResolution")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("StackTrace")
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnType("int");
|
||||
@@ -401,9 +387,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
@@ -412,13 +396,11 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("UserEmail")
|
||||
.IsRequired()
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("nvarchar(150)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("id");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CameraBugReports", (string)null);
|
||||
b.ToTable("CameraBugReports");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
|
||||
@@ -429,15 +411,14 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
||||
|
||||
b.Property<long>("CameraBugReportId")
|
||||
.HasColumnType("bigint");
|
||||
b.Property<Guid?>("CameraBugReportId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Message")
|
||||
.IsRequired()
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("Timestamp")
|
||||
.HasColumnType("datetime2");
|
||||
@@ -446,7 +427,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
b.HasIndex("CameraBugReportId");
|
||||
|
||||
b.ToTable("CameraBugReportLogs", (string)null);
|
||||
b.ToTable("CameraBugReportLogs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
|
||||
@@ -458,18 +439,16 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
||||
|
||||
b.Property<string>("Base64Data")
|
||||
.IsRequired()
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<long>("CameraBugReportId")
|
||||
.HasColumnType("bigint");
|
||||
b.Property<Guid?>("CameraBugReportId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("FileName")
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("nvarchar(255)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("UploadDate")
|
||||
.HasColumnType("datetime2");
|
||||
@@ -478,7 +457,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
b.HasIndex("CameraBugReportId");
|
||||
|
||||
b.ToTable("CameraBugReportScreenshots", (string)null);
|
||||
b.ToTable("CameraBugReportScreenshots");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
|
||||
@@ -4180,7 +4159,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasMaxLength(4)
|
||||
.HasColumnType("nvarchar(4)");
|
||||
|
||||
b.ComplexProperty<Dictionary<string, object>>("Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
@@ -4202,7 +4181,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("nvarchar(50)");
|
||||
});
|
||||
|
||||
b.ComplexProperty<Dictionary<string, object>>("EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
@@ -4219,7 +4198,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("nvarchar(50)");
|
||||
});
|
||||
|
||||
b.ComplexProperty<Dictionary<string, object>>("Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
@@ -7332,24 +7311,16 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
|
||||
{
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
|
||||
.WithMany("Logs")
|
||||
.HasForeignKey("CameraBugReportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CameraBugReport");
|
||||
.HasForeignKey("CameraBugReportId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
|
||||
{
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
|
||||
.WithMany("Screenshots")
|
||||
.HasForeignKey("CameraBugReportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CameraBugReport");
|
||||
.HasForeignKey("CameraBugReportId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
|
||||
23
CompanyManagment.EFCore/Migrations/20251213184424_testmig.cs
Normal file
23
CompanyManagment.EFCore/Migrations/20251213184424_testmig.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CompanyManagment.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class testmig : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,7 +18,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.10")
|
||||
.HasAnnotation("ProductVersion", "10.0.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
@@ -310,44 +310,36 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReport", b =>
|
||||
{
|
||||
b.Property<long>("id")
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bigint");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<long?>("AccountId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<string>("AppVersion")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("BatteryLevel")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("BuildNumber")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("DeviceId")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("DeviceModel")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Flavor")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("InstallTime")
|
||||
.HasColumnType("datetime2");
|
||||
@@ -359,37 +351,31 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Manufacturer")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("nvarchar(100)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("MemoryInMB")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("NetworkType")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("OsVersion")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("PackageName")
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("nvarchar(150)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Priority")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("ScreenResolution")
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("nvarchar(50)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<string>("StackTrace")
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnType("int");
|
||||
@@ -398,9 +384,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("nvarchar(200)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
@@ -409,13 +393,11 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("UserEmail")
|
||||
.IsRequired()
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("nvarchar(150)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.HasKey("id");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("CameraBugReports", (string)null);
|
||||
b.ToTable("CameraBugReports");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
|
||||
@@ -426,15 +408,14 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
||||
|
||||
b.Property<long>("CameraBugReportId")
|
||||
.HasColumnType("bigint");
|
||||
b.Property<Guid?>("CameraBugReportId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("Message")
|
||||
.IsRequired()
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("Timestamp")
|
||||
.HasColumnType("datetime2");
|
||||
@@ -443,7 +424,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
b.HasIndex("CameraBugReportId");
|
||||
|
||||
b.ToTable("CameraBugReportLogs", (string)null);
|
||||
b.ToTable("CameraBugReportLogs");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
|
||||
@@ -455,18 +436,16 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("id"));
|
||||
|
||||
b.Property<string>("Base64Data")
|
||||
.IsRequired()
|
||||
.HasColumnType("ntext");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<long>("CameraBugReportId")
|
||||
.HasColumnType("bigint");
|
||||
b.Property<Guid?>("CameraBugReportId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
b.Property<string>("FileName")
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("nvarchar(255)");
|
||||
.HasColumnType("nvarchar(max)");
|
||||
|
||||
b.Property<DateTime>("UploadDate")
|
||||
.HasColumnType("datetime2");
|
||||
@@ -475,7 +454,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
b.HasIndex("CameraBugReportId");
|
||||
|
||||
b.ToTable("CameraBugReportScreenshots", (string)null);
|
||||
b.ToTable("CameraBugReportScreenshots");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
|
||||
@@ -4177,7 +4156,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasMaxLength(4)
|
||||
.HasColumnType("nvarchar(4)");
|
||||
|
||||
b.ComplexProperty<Dictionary<string, object>>("Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "Debt", "Company.Domain.InsuranceListAgg.InsuranceList.Debt#InsuranceListDebt", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
@@ -4199,7 +4178,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("nvarchar(50)");
|
||||
});
|
||||
|
||||
b.ComplexProperty<Dictionary<string, object>>("EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "EmployerApproval", "Company.Domain.InsuranceListAgg.InsuranceList.EmployerApproval#InsuranceListEmployerApproval", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
@@ -4216,7 +4195,7 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
.HasColumnType("nvarchar(50)");
|
||||
});
|
||||
|
||||
b.ComplexProperty<Dictionary<string, object>>("Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
|
||||
b.ComplexProperty(typeof(Dictionary<string, object>), "Inspection", "Company.Domain.InsuranceListAgg.InsuranceList.Inspection#InsuranceListInspection", b1 =>
|
||||
{
|
||||
b1.IsRequired();
|
||||
|
||||
@@ -7329,24 +7308,16 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportLog", b =>
|
||||
{
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
|
||||
.WithMany("Logs")
|
||||
.HasForeignKey("CameraBugReportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CameraBugReport");
|
||||
.HasForeignKey("CameraBugReportId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.CameraBugReportAgg.CameraBugReportScreenshot", b =>
|
||||
{
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", "CameraBugReport")
|
||||
b.HasOne("Company.Domain.CameraBugReportAgg.CameraBugReport", null)
|
||||
.WithMany("Screenshots")
|
||||
.HasForeignKey("CameraBugReportId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("CameraBugReport");
|
||||
.HasForeignKey("CameraBugReportId");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Company.Domain.ChapterAgg.EntityChapter", b =>
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
|
||||
//program_manager_db
|
||||
"ProgramManagerDb": "Data Source=.;Initial Catalog=program_manager_db;Integrated Security=True;TrustServerCertificate=true;",
|
||||
"ProgramManagerDbServer": "Data Source=171.22.24.15;Initial Catalog=program_manager_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]18[3019]#@ATt;TrustServerCertificate=true;"
|
||||
//"ProgramManagerDb": "Data Source=185.208.175.186;Initial Catalog=program_manager_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]18[3019]#@ATt;TrustServerCertificate=true;"
|
||||
//"ProgramManagerDbServer": "Data Source=171.22.24.15;Initial Catalog=program_manager_db;Persist Security Info=False;User ID=ir_db;Password=R2rNp[170]18[3019]#@ATt;TrustServerCertificate=true;"
|
||||
//mahan Docker
|
||||
//"MesbahDb": "Data Source=localhost,5069;Initial Catalog=mesbah_db;User ID=sa;Password=YourPassword123;TrustServerCertificate=True;"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user