31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Entities.Users;
|
|
using TIAM.Entities.Addresses;
|
|
using TIAM.Entities.Products;
|
|
using TIAM.Entities.Profiles;
|
|
using TIAM.Entities.ServiceProviders;
|
|
|
|
namespace TIAM.Entities.Users
|
|
{
|
|
[Table("Users")]
|
|
public class User : AcUser<Profile, Company, UserToCompany, Address>, IUser, IUserDtoDetail
|
|
{
|
|
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; } = [];
|
|
|
|
public User() { }
|
|
public User(string email, string password) : this(Guid.NewGuid(), email, password) { }
|
|
public User(Guid id, string email, string password) : base(id, email, password)
|
|
{ }
|
|
public User(Guid id, string email, string phoneNumber, string password) : base(id, email, phoneNumber, password)
|
|
{ }
|
|
public User(Guid id, string email, string phoneNumber, string password, string refreshToken) : base(id, email, phoneNumber, password, refreshToken)
|
|
{ }
|
|
|
|
}
|
|
}
|