feat: update RegistrationStatus to use string type and add Completed status
This commit is contained in:
@@ -9,4 +9,5 @@ public enum InstitutionContractListStatus
|
||||
Free,
|
||||
PendingForRenewal,
|
||||
WithoutWorkshop,
|
||||
Completed
|
||||
}
|
||||
@@ -11,7 +11,7 @@ public class InstitutionContractTempMapping : IEntityTypeConfiguration<Instituti
|
||||
builder.ToTable("InstitutionContractTemps");
|
||||
builder.HasKey(x => x.id);
|
||||
|
||||
builder.Property(x => x.RegistrationStatus).HasMaxLength(30);
|
||||
builder.Property(x => x.RegistrationStatus).HasConversion<string>().HasMaxLength(30);
|
||||
builder.Property(x => x.PaymentModel).HasMaxLength(30);
|
||||
builder.Property(x => x.PeriodModel).HasMaxLength(3);
|
||||
builder.Property(x => x.OfficialCompany).HasMaxLength(30);
|
||||
|
||||
10483
CompanyManagment.EFCore/Migrations/20250821101944_set enum to string.Designer.cs
generated
Normal file
10483
CompanyManagment.EFCore/Migrations/20250821101944_set enum to string.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace CompanyManagment.EFCore.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class setenumtostring : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "RegistrationStatus",
|
||||
table: "InstitutionContractTemps",
|
||||
type: "nvarchar(30)",
|
||||
maxLength: 30,
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "int",
|
||||
oldMaxLength: 30);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "RegistrationStatus",
|
||||
table: "InstitutionContractTemps",
|
||||
type: "int",
|
||||
maxLength: 30,
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "nvarchar(30)",
|
||||
oldMaxLength: 30);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5585,9 +5585,10 @@ namespace CompanyManagment.EFCore.Migrations
|
||||
b.Property<Guid>("PublicId")
|
||||
.HasColumnType("uniqueidentifier");
|
||||
|
||||
b.Property<int>("RegistrationStatus")
|
||||
b.Property<string>("RegistrationStatus")
|
||||
.IsRequired()
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("int");
|
||||
.HasColumnType("nvarchar(30)");
|
||||
|
||||
b.Property<DateTime?>("SendVerifyCodeTime")
|
||||
.HasColumnType("datetime2");
|
||||
|
||||
Reference in New Issue
Block a user