23 lines
922 B
C#
23 lines
922 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Entities.Users;
|
|
using Mango.Entities.Addresses;
|
|
using Mango.Entities.Companies;
|
|
using Mango.Entities.Profiles;
|
|
using Mango.Interfaces.Users;
|
|
|
|
namespace Mango.Entities.Users
|
|
{
|
|
[Table("Users")]
|
|
public class User : AcUser<Profile, Company, UserToCompany, Address>, IUser<Profile, Company, UserToCompany, Address>
|
|
{
|
|
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)
|
|
{ }
|
|
}
|
|
}
|