drinkrate/DrinkRateAPI/DbEntities/DbUserProfile.cs
martinshoob 786f83bf2d Connect UserProfile with ApplicationUser
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.
2025-08-09 15:43:32 +02:00

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; }
}