This commit is contained in:
Loretta 2024-08-03 18:20:02 +02:00
parent 24ae96df0c
commit d7c33c451b
2 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,7 @@ namespace TIAM.Entities.Users;
public interface IUser : IAcUser<Profile, Company, UserToCompany, Address>, IUserDto<Profile, Company, UserToCompany>, IUserBase
{
public string? ConfirmToken { get; set; }
public List<Product> Products { get; }
//public ServiceProvider ServiceProvider { get; set; }

View File

@ -10,10 +10,12 @@ namespace TIAM.Entities.Users
[Table("Users")]
public class User : AcUser<Profile, Company, UserToCompany, Address>, IUser, IUserDtoDetail
{
public virtual List<Product> Products { get; set; } = new();
public string? ConfirmToken { get; set; }
public virtual List<Product> Products { get; set; } = [];
//public virtual ServiceProvider ServiceProvider { get; set; } = new();
public virtual List<UserProductMapping> UserProductMappings { get; set; } = new();
public virtual List<UserProductMapping> UserProductMappings { get; set; } = [];
public User() { }
public User(string email, string password) : this(Guid.NewGuid(), email, password) { }