Skip to content

Commit

Permalink
Added migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Sep 22, 2024
1 parent de96e7e commit b0b26c3
Show file tree
Hide file tree
Showing 5 changed files with 1,690 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public CrashReportIgnoredFileIdEntityConfiguration(ITenantContextAccessor tenant

protected override void ConfigureModel(EntityTypeBuilder<CrashReportIgnoredFileEntity> builder)
{
builder.Property(x => x.CrashReportFileId).HasColumnName("crash_report_file_ignored_id").HasVogenConversion().ValueGeneratedOnAdd();
builder.Property(x => x.CrashReportFileId).HasColumnName("crash_report_file_ignored_id").HasVogenConversion();
builder.ToTable("crash_report_file_ignored", "crashreport").HasKey(x => new { x.TenantId, Value = x.CrashReportFileId });

base.ConfigureModel(builder);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ protected override void ConfigureModel(EntityTypeBuilder<NexusModsUserToRoleEnti
{
builder.Property(x => x.NexusModsUserId).HasColumnName("nexusmods_user_role_id").HasVogenConversion().ValueGeneratedNever();
builder.Property(x => x.Role).HasColumnName("role").HasVogenConversion();
builder.Property(x => x.TenantId).HasColumnName("tenant").HasVogenConversion();
builder.ToTable("nexusmods_user_role", "nexusmods_user").HasKey(x => new
{
x.TenantId,
Expand Down
Loading

0 comments on commit b0b26c3

Please sign in to comment.