Skip to content

Commit

Permalink
chore: scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
ychung-mot committed Oct 17, 2024
1 parent f7f3f3b commit d7bc134
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
13 changes: 13 additions & 0 deletions server/StrDss.Data/Entities/DssDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,15 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.HasColumnName("secondary_takedown_request_contact_email");
entity.Property(e => e.SecondaryTakedownRequestContactId).HasColumnName("secondary_takedown_request_contact_id");
entity.Property(e => e.UpdDtm).HasColumnName("upd_dtm");
entity.Property(e => e.UpdUserDisplayNm)
.HasMaxLength(250)
.HasColumnName("upd_user_display_nm");
entity.Property(e => e.UpdUserFamilyNm)
.HasMaxLength(250)
.HasColumnName("upd_user_family_nm");
entity.Property(e => e.UpdUserGivenNm)
.HasMaxLength(250)
.HasColumnName("upd_user_given_nm");
entity.Property(e => e.UpdUserGuid).HasColumnName("upd_user_guid");
});

Expand Down Expand Up @@ -1268,6 +1277,10 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
.HasMaxLength(320)
.HasComment("E-mail address associated with the user by the identity provider")
.HasColumnName("email_address_dsc");
entity.Property(e => e.ExternalIdentityCd)
.HasMaxLength(100)
.HasComment("A non-guid unique identifier assigned by the identity provider")
.HasColumnName("external_identity_cd");
entity.Property(e => e.FamilyNm)
.HasMaxLength(25)
.HasComment("A name that is often shared amongst members of the same family (commonly known as a surname within some cultures)")
Expand Down
6 changes: 6 additions & 0 deletions server/StrDss.Data/Entities/DssPlatformVw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public partial class DssPlatformVw

public Guid? UpdUserGuid { get; set; }

public string? UpdUserDisplayNm { get; set; }

public string? UpdUserGivenNm { get; set; }

public string? UpdUserFamilyNm { get; set; }

public long? PrimaryNoticeOfTakedownContactId { get; set; }

public string? PrimaryNoticeOfTakedownContactEmail { get; set; }
Expand Down
5 changes: 5 additions & 0 deletions server/StrDss.Data/Entities/DssUserIdentity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ public partial class DssUserIdentity
/// </summary>
public Guid? UpdUserGuid { get; set; }

/// <summary>
/// A non-guid unique identifier assigned by the identity provider
/// </summary>
public string? ExternalIdentityCd { get; set; }

public virtual DssAccessRequestStatus AccessRequestStatusCdNavigation { get; set; } = null!;

public virtual ICollection<DssEmailMessage> DssEmailMessageAffectedByUserIdentities { get; set; } = new List<DssEmailMessage>();
Expand Down
9 changes: 4 additions & 5 deletions server/StrDss.Model/OrganizationDtos/PlatformViewDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ public PlatformViewDto()
public string OrganizationNm { get; set; } = null!;
public DateTime UpdDtm { get; set; }
public Guid? UpdUserGuid { get; set; }
//TODO: Add FullName to Platformvw. Remove default value below after Leif Updates the view to include "Full Name".
public string UpdUserNm { get; } = "Richard Anderson";

//TODO: Add ManagingOrganizationID to PlatFormvw. Comment in line below when completed
//public long ManagingOrganizationId { get; set; }
public string? UpdUserDisplayNm { get; set; }
public string? UpdUserGivenNm { get; set; }
public string? UpdUserFamilyNm { get; set; }
public long? ManagingOrganizationId { get; set; }
public long? PrimaryNoticeOfTakedownContactId { get; set; }
public string? PrimaryNoticeOfTakedownContactEmail { get; set; }
public long? PrimaryTakedownRequestContactId { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion server/StrDss.Model/UserDtos/UserCreateDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class UserCreateDto
{
public Guid UserGuid { get; set; }

public string? ExternalIdentityCd { get; set; }
public string DisplayNm { get; set; } = null!;

public string IdentityProviderNm { get; set; } = null!;
Expand Down
1 change: 1 addition & 0 deletions server/StrDss.Model/UserDtos/UserDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class UserDto

[JsonIgnore]
public Guid UserGuid { get; set; }
public string? ExternalIdentityCd { get; set; }

public string DisplayNm { get; set; } = null!;

Expand Down

0 comments on commit d7bc134

Please sign in to comment.