Establishes a link between DbUserProfile and DbApplicationUser, allowing for better management of user-related information and integration with ASP.NET Identity. Renames DbUser to DbUserProfile and updates related entities and configurations.
27 lines
No EOL
867 B
C#
27 lines
No EOL
867 B
C#
using Microsoft.AspNetCore.Identity;
|
|
|
|
namespace DrinkRateAPI.DbEntities;
|
|
|
|
public class DbUserProfile
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public ICollection<DbCompanyTableView> CompanyTableViews { get; set; }
|
|
public ICollection<DbProductTableView> ProductTableViews { get; set; }
|
|
|
|
public ICollection<DbCompanyRating> CompanyRatings { get; set; }
|
|
public ICollection<DbProductRating> ProductRatings { get; set; }
|
|
|
|
public ICollection<DbUserProfileCompanyTableStat> UserProfileCompanyTableStats { get; set; }
|
|
public ICollection<DbUserProfileProductTableStat> UserProfileProductTableStats { get; set; }
|
|
|
|
public string UserName { get; set; }
|
|
|
|
public bool IsAdmin { get; set; }
|
|
|
|
public bool IsDeleted { get; set; }
|
|
|
|
public string ApplicationUserId { get; set; }
|
|
|
|
public virtual DbApplicationUser ApplicationUser { get; set; }
|
|
} |