You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
536 lines
19 KiB
536 lines
19 KiB
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Models;
|
|
|
|
#nullable disable
|
|
|
|
namespace backend.Migrations
|
|
{
|
|
[DbContext(typeof(PortfolioPortalDbContext))]
|
|
[Migration("20230314000540_InitialCreate")]
|
|
partial class InitialCreate
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.3")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Models.Auth", b =>
|
|
{
|
|
b.Property<int>("AuthId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("AuthId"));
|
|
|
|
b.Property<int>("AuthLevelId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("AuthId");
|
|
|
|
b.ToTable("Auths");
|
|
});
|
|
|
|
modelBuilder.Entity("Models.AuthLevel", b =>
|
|
{
|
|
b.Property<int>("AuthLevelId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("AuthLevelId"));
|
|
|
|
b.Property<string>("AuthLevelAuthLevel")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("AuthLevelId");
|
|
|
|
b.ToTable("AuthLevels");
|
|
});
|
|
|
|
modelBuilder.Entity("Models.Company", b =>
|
|
{
|
|
b.Property<int>("CompanyId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("CompanyId"));
|
|
|
|
b.Property<string>("CompanyName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTimeOffset>("Created")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<DateTimeOffset>("LastLogin")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<int>("MainContact")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("State")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTimeOffset>("Updated")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.HasKey("CompanyId");
|
|
|
|
b.ToTable("Companies");
|
|
});
|
|
|
|
modelBuilder.Entity("Models.LeafHeader", b =>
|
|
{
|
|
b.Property<long>("LeafHeaderId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("LeafHeaderId"));
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTimeOffset>("Created")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<string>("HeaderRegex")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("LeafHeaderLeafHeader")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("LeafHeaderRequired")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("Nullable")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ValueRegex")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("LeafHeaderId");
|
|
|
|
b.ToTable("LeafHeaders");
|
|
});
|
|
|
|
modelBuilder.Entity("Models.Portfolio", b =>
|
|
{
|
|
b.Property<int>("PortfolioID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("PortfolioID"));
|
|
|
|
b.Property<short>("CompanyID")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("NumContracts")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("UploadUser")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<DateTimeOffset>("Uploaded")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<decimal>("Value")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.HasKey("PortfolioID");
|
|
|
|
b.ToTable("Portfolios");
|
|
});
|
|
|
|
modelBuilder.Entity("Models.PortfolioData", b =>
|
|
{
|
|
b.Property<int>("PortfolioDataID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("PortfolioDataID"));
|
|
|
|
b.Property<string>("AdditionalData")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetDescription")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetEquipmentAddress1")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetEquipmentAddress2")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetEquipmentCity")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetEquipmentState")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetEquipmentZip")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("AssetType")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Assumption")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Bankruptcy")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("BusinessType")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CGAddress1")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CGAddress2")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CGCity")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CGName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CGState")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CGZip")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CSC")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CommencementDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ContractNumber")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerBillingCity")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerBillingState")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerBillingStreet")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerBillingZip")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerNumber")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerPhoneNumber")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerPhysicalAddress1")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerPhysicalAddress2")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerPhysicalCity")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerPhysicalState")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerPhysicalZip")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomerTaxID")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("DBAName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("DOB")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("DateBooked")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("Dateincomesuspended")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<short>("DaysDelinquent")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<string>("DirectInDirectChannel")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("FinancedAmount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("LastPaymentDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("MaturityDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<decimal>("NPV")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("NextDue")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("NextDueDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<short>("NumDays")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("PG1FICO")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<string>("PG2Address1")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PG2Address2")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PG2City")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("PG2DOB")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<short>("PG2FICO")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<string>("PG2Name")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PG2SSN")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PG2State")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PG2Zip")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGAddress1")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGAddress2")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGCity")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGName")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGSSN")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGState")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PGZip")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("PaidThruDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<decimal>("PaymentAmount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("PaymentType")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PerDiem")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("PortfolioID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<decimal>("Receivablebalance")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<short>("RemainingMonthsCash")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<float>("ResidualAmount")
|
|
.HasColumnType("real");
|
|
|
|
b.Property<string>("ResidualTypeTo")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Resturcture")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<short>("SICCode")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<string>("ScheduleNumber")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SecurityDeposit")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("SerialNumberVIN")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<byte>("Term")
|
|
.HasColumnType("tinyint");
|
|
|
|
b.Property<DateTime>("TerminationDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<short>("Times30DaysDelinq")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("Times60DaysDelinq")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<short>("Times90PlusDaysDelinq")
|
|
.HasColumnType("smallint");
|
|
|
|
b.Property<decimal>("TotalNetFunding")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Vendorname")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<short>("YearsinBusiness")
|
|
.HasColumnType("smallint");
|
|
|
|
b.HasKey("PortfolioDataID");
|
|
|
|
b.ToTable("PortfolioData");
|
|
});
|
|
|
|
modelBuilder.Entity("Models.User", b =>
|
|
{
|
|
b.Property<int>("UserId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("UserId"));
|
|
|
|
b.Property<int>("CompanyId")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Created")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTimeOffset>("LastLogin")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTimeOffset>("PasswordUpdated")
|
|
.HasColumnType("datetimeoffset");
|
|
|
|
b.Property<string>("Updated")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Username")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("UserId");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|